diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-06-10 08:37:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-06-10 08:37:34 -0400 |
commit | 1d11675adbc40c52b0d5047c0bb6f033bde6b19a (patch) | |
tree | 590c971fe33196bd0b0789f1f49f0b4842684ed4 /src/lib/crypt_ops | |
parent | cb3821966430abc51d81cb01bd32fc956f0c8125 (diff) | |
parent | e2d01aac9e2f45f2c8f0de057f3104d6cfcdaa80 (diff) | |
download | tor-1d11675adbc40c52b0d5047c0bb6f033bde6b19a.tar.gz tor-1d11675adbc40c52b0d5047c0bb6f033bde6b19a.zip |
Merge branch 'maint-0.4.5' into maint-0.4.6
Diffstat (limited to 'src/lib/crypt_ops')
-rw-r--r-- | src/lib/crypt_ops/crypto_rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c index b51013efe4..83b709c623 100644 --- a/src/lib/crypt_ops/crypto_rand.c +++ b/src/lib/crypt_ops/crypto_rand.c @@ -525,8 +525,8 @@ crypto_rand_unmocked(char *to, size_t n) /* We consider a PRNG failure non-survivable. Let's assert so that we get a * stack trace about where it happened. */ - tor_assert(r >= 0); -#endif /* defined(ENABLE_NSS) */ + tor_assert(r == 1); +#endif } /** |