diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-06-10 08:34:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-06-10 08:34:25 -0400 |
commit | 7fdfc2ea5470c572a113321e19cdb5144b10cdd8 (patch) | |
tree | 0a7512f1e32595e37713712193686d4a903e4e3f /src | |
parent | 520d5c108f84e8afedc16ab057cbfe5abfab6df2 (diff) | |
parent | c0aa9e0a1b1633d3b221199d516294e14a5db9c6 (diff) | |
download | tor-7fdfc2ea5470c572a113321e19cdb5144b10cdd8.tar.gz tor-7fdfc2ea5470c572a113321e19cdb5144b10cdd8.zip |
Merge branch 'bug40390_035_squashed' into maint-0.3.5
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypt_ops/crypto_rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c index 915fe0870d..206929d6b3 100644 --- a/src/lib/crypt_ops/crypto_rand.c +++ b/src/lib/crypt_ops/crypto_rand.c @@ -525,7 +525,7 @@ 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); + tor_assert(r == 1); #endif } |