Use uniform_int_distribution for generating PINs
This commit is contained in:
parent
16bb4a148e
commit
d1c4ca5eae
3 changed files with 15 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ CenteredGridView {
|
|||
}
|
||||
else {
|
||||
if (!model.busy) {
|
||||
var pin = ("0000" + Math.floor(Math.random() * 10000)).slice(-4)
|
||||
var pin = computerModel.generatePinString()
|
||||
|
||||
// Kick off pairing in the background
|
||||
computerModel.pairComputer(index, pin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue