Skip to content

Commit c22ecc0

Browse files
committed
Removed randomization from C key generation, to enable deterministic tests.
1 parent d6cff7a commit c22ecc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/tweetnacl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ int crypto_sign_keypair(u8 *pk, u8 *sk)
659659
gf p[4];
660660
int i;
661661

662-
randombytes(sk, 32);
662+
//randombytes(sk, 32);
663663
crypto_hash(d, sk, 32);
664664
d[0] &= 248;
665665
d[31] &= 127;

0 commit comments

Comments
 (0)