missing chips order randomized

This commit is contained in:
Lukas Korba 2022-04-08 16:17:20 +02:00
parent 1973e114a4
commit 9e83b5ccfc
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ extension RecoveryPhraseValidationState {
/// - Note: Use this function to create a random validation puzzle for a given phrase.
static func random(phrase: RecoveryPhrase) -> Self {
let missingIndices = Self.randomIndices()
let missingWordChipKind = phrase.words(fromMissingIndices: missingIndices)
let missingWordChipKind = phrase.words(fromMissingIndices: missingIndices).shuffled()
return RecoveryPhraseValidationState(
phrase: phrase,