From 9e83b5ccfc536245feb49247846999fb5f762ddf Mon Sep 17 00:00:00 2001 From: Lukas Korba Date: Fri, 8 Apr 2022 16:17:20 +0200 Subject: [PATCH] missing chips order randomized --- secant/Features/BackupFlow/RecoveryPhraseValidation.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secant/Features/BackupFlow/RecoveryPhraseValidation.swift b/secant/Features/BackupFlow/RecoveryPhraseValidation.swift index 5477157..ef2831b 100644 --- a/secant/Features/BackupFlow/RecoveryPhraseValidation.swift +++ b/secant/Features/BackupFlow/RecoveryPhraseValidation.swift @@ -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,