Use 16 random bytes for seed and key, crc16 by default

This commit is contained in:
Ethan Frey
2017-07-22 05:44:09 -04:00
parent 65da3cf340
commit 4ff889a236
6 changed files with 36 additions and 21 deletions

View File

@ -152,7 +152,7 @@ func TestCheckTypoDetection(t *testing.T) {
codec, err := LoadCodec(bank)
require.Nil(err, "%s: %+v", bank, err)
for i := 0; i < 1000; i++ {
numBytes := cmn.RandInt()%60 + 1
numBytes := cmn.RandInt()%60 + 4
data := cmn.RandBytes(numBytes)
words, err := codec.BytesToWords(data)