Exemplo n.º 1
0
 def test_random_seeds(self):
     iters = 10
     m = mnemonic.Mnemonic(lang='en')
     for _ in range(iters):
         seed = m.make_seed()
         i = m.mnemonic_decode(seed)
         self.assertEquals(m.mnemonic_encode(i), seed)
Exemplo n.º 2
0
 def test_random_seeds(self):
     iters = 10
     m = mnemonic.Mnemonic(lang='en')
     for _ in range(iters):
         seed = m.make_seed()
         self.assertTrue(m.check_seed(seed, custom_entropy=1))
         i = m.mnemonic_decode(seed)
         self.assertEquals(m.mnemonic_encode(i), seed)