From 668cc2a70745da53d79778578cf8f87ff9fa343a Mon Sep 17 00:00:00 2001 From: Oleksii Herashchenko Date: Fri, 7 Oct 2022 18:51:57 -0700 Subject: [PATCH] Update bip39_base.dart updating _SIZE_BYTE to generate uniform random values --- lib/src/bip39_base.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/bip39_base.dart b/lib/src/bip39_base.dart index 6b0d61e..b30429f 100644 --- a/lib/src/bip39_base.dart +++ b/lib/src/bip39_base.dart @@ -7,7 +7,7 @@ import 'package:hex/hex.dart'; import 'utils/pbkdf2.dart'; import 'wordlists/english.dart'; -const int _SIZE_BYTE = 255; +const int _SIZE_BYTE = 256; const _INVALID_MNEMONIC = 'Invalid mnemonic'; const _INVALID_ENTROPY = 'Invalid entropy'; const _INVALID_CHECKSUM = 'Invalid mnemonic checksum';