Merge branch 'master' of https://github.com/jedisct1/libsodium
* 'master' of https://github.com/jedisct1/libsodium: Emscripten: don't use a memory init file any more. It doesn't take that long to load the module, and it's going to make users' life way easier. Do not require /dev/urandom emulation in Javascript any more.
This commit is contained in:
commit
3befdd21d8
@ -239,7 +239,7 @@ randombytes_sysrandom_uniform(const uint32_t upper_bound)
|
||||
return 0;
|
||||
}
|
||||
min = (uint32_t) (-upper_bound % upper_bound);
|
||||
for (;;) {
|
||||
do {
|
||||
r = randombytes_sysrandom();
|
||||
} while (r < min); /* LCOV_EXCL_LINE */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user