diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-06-10 08:32:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-06-10 08:32:12 -0400 |
commit | c5922244e27f72a0b974920d56475450932568ff (patch) | |
tree | eb733c6fd5329100bc5743252d26e6c4fe5c3f77 /src | |
parent | d6e2516031daa3e081ed7efdbd4e298fd4e7a290 (diff) | |
parent | 9ceb2c317b7a4fe9777599971ef6a2f68e5e6c46 (diff) | |
download | tor-c5922244e27f72a0b974920d56475450932568ff.tar.gz tor-c5922244e27f72a0b974920d56475450932568ff.zip |
Merge branch 'maint-0.3.5' into release-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 } |