diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-08 12:53:51 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-08 12:53:51 -0500 |
commit | b701b7962b256ad7c4c43ad191a8ee094613af11 (patch) | |
tree | a2ac9aec6bc0280f127d7d0d8bd8d5248db39fab /src/common | |
parent | 9ce431f03229e723f6a41412818fcb44108d9589 (diff) | |
download | tor-b701b7962b256ad7c4c43ad191a8ee094613af11.tar.gz tor-b701b7962b256ad7c4c43ad191a8ee094613af11.zip |
Fix comment switcheroo. Spotted by skruffy
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 5d8b45e426..c0e118c99a 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -2351,7 +2351,7 @@ crypto_seed_weak_rng(tor_weak_rng_t *rng) } /** Try to get <b>out_len</b> bytes of the strongest entropy we can generate, - * via system calls, storing it into <b>out</b>. Return -1 on success, 0 on + * via system calls, storing it into <b>out</b>. Return 0 on success, -1 on * failure. A maximum request size of 256 bytes is imposed. */ static int @@ -2434,7 +2434,7 @@ crypto_strongest_rand_syscall(uint8_t *out, size_t out_len) /** Try to get <b>out_len</b> bytes of the strongest entropy we can generate, * via the per-platform fallback mechanism, storing it into <b>out</b>. - * Return -1 on success, 0 on failure. A maximum request size of 256 bytes + * Return 0 on success, -1 on failure. A maximum request size of 256 bytes * is imposed. */ static int @@ -2472,7 +2472,7 @@ crypto_strongest_rand_fallback(uint8_t *out, size_t out_len) } /** Try to get <b>out_len</b> bytes of the strongest entropy we can generate, - * storing it into <b>out</b>. Return -1 on success, 0 on failure. A maximum + * storing it into <b>out</b>. Return 0 on success, -1 on failure. A maximum * request size of 256 bytes is imposed. */ int |