summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-06 22:18:01 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-06 22:18:01 +0000
commitcc35e1720f7dde775e2c8246c2f9b542954e401f (patch)
tree68a8b834a6d2a466d883a733923168ea915d4205 /src/common/crypto.h
parent0e5b6a84eb1ab156437d24c2fc1cb61249b008d4 (diff)
downloadtor-cc35e1720f7dde775e2c8246c2f9b542954e401f.tar.gz
tor-cc35e1720f7dde775e2c8246c2f9b542954e401f.zip
Using RAND_pseudo_bytes instead of RAND_bytes is an accident waiting to happen, and does not really speed us up much when we do it. So stop doing it.
svn:r5210
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index f7a3fa6973..4eb57e88e4 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -148,8 +148,7 @@ void crypto_dh_free(crypto_dh_env_t *dh);
/* random numbers */
int crypto_seed_rng(void);
int crypto_rand(char *to, size_t n);
-void crypto_pseudo_rand(char *to, size_t n);
-int crypto_pseudo_rand_int(unsigned int max);
+int crypto_rand_int(unsigned int max);
struct smartlist_t;
void *smartlist_choose(const struct smartlist_t *sl);