diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-03-13 15:15:03 +0200 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-03-22 09:22:54 +1000 |
commit | 846d379b50b4f4790a9fe2ec88746748e0fab2b7 (patch) | |
tree | 2fd14656fd28dd1003786cd7d4e90038b3402d7e /src/lib/crypt_ops/crypto_rand.h | |
parent | bc64fb4e33ff98ca7271ee369fef24b3cf693574 (diff) | |
download | tor-846d379b50b4f4790a9fe2ec88746748e0fab2b7.tar.gz tor-846d379b50b4f4790a9fe2ec88746748e0fab2b7.zip |
circpad/prob_distr: Use crypto_fast_rng() instead of the old RNG.
Diffstat (limited to 'src/lib/crypt_ops/crypto_rand.h')
-rw-r--r-- | src/lib/crypt_ops/crypto_rand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.h b/src/lib/crypt_ops/crypto_rand.h index 6f09aedf6a..c51d6a4480 100644 --- a/src/lib/crypt_ops/crypto_rand.h +++ b/src/lib/crypt_ops/crypto_rand.h @@ -66,6 +66,9 @@ void crypto_fast_rng_free_(crypto_fast_rng_t *); unsigned crypto_fast_rng_get_uint(crypto_fast_rng_t *rng, unsigned limit); uint64_t crypto_fast_rng_get_uint64(crypto_fast_rng_t *rng, uint64_t limit); +uint32_t crypto_fast_rng_get_u32(crypto_fast_rng_t *rng); +uint64_t crypto_fast_rng_uint64_range(crypto_fast_rng_t *rng, + uint64_t min, uint64_t max); double crypto_fast_rng_get_double(crypto_fast_rng_t *rng); /** |