summaryrefslogtreecommitdiff
path: root/src/or/connection.c
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/or/connection.c
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/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 32eebe7d59..ae57ffb5a4 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -176,7 +176,7 @@ connection_new(int type)
conn->socks_request = tor_malloc_zero(sizeof(socks_request_t));
}
- conn->next_circ_id = crypto_pseudo_rand_int(1<<15);
+ conn->next_circ_id = crypto_rand_int(1<<15);
conn->timestamp_created = now;
conn->timestamp_lastread = now;