mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
randombytes_random() is 32 bits, even in JS.
This commit is contained in:
@@ -35,6 +35,7 @@ static int randombytes_tests(void)
|
||||
assert(strcmp(randombytes_implementation_name(), "js"));
|
||||
#endif
|
||||
randombytes(x, 1U);
|
||||
while (randombytes_random() <= (uint32_t) 0x7fffffff);
|
||||
randombytes_close();
|
||||
|
||||
for (i = 0; i < 256; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user