aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_rand.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-03-13 15:15:03 +0200
committerteor <teor@torproject.org>2019-03-22 09:22:54 +1000
commit846d379b50b4f4790a9fe2ec88746748e0fab2b7 (patch)
tree2fd14656fd28dd1003786cd7d4e90038b3402d7e /src/lib/crypt_ops/crypto_rand.h
parentbc64fb4e33ff98ca7271ee369fef24b3cf693574 (diff)
downloadtor-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.h3
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);
/**