* '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:
Frank Denis 2015-01-17 23:01:56 +01:00
commit 3befdd21d8

View File

@ -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 */