aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-09 15:29:19 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-09 15:29:19 -0400
commit4e00625bbe030f5c1ae54fb7c4c07dd061ab8644 (patch)
tree0a3155fdcafccc52b1c54ca11949cec0b012614f /src/or
parent05f8429a280f80c94fa7c01f6a5c4b654cd02286 (diff)
downloadtor-4e00625bbe030f5c1ae54fb7c4c07dd061ab8644.tar
tor-4e00625bbe030f5c1ae54fb7c4c07dd061ab8644.tar.gz
Build correctly with older libevents
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 18e8bc44a..01f6b5c75 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2804,8 +2804,10 @@ tor_main(int argc, char *argv[])
}
// registering libevent rng
+#ifdef HAVE_EVUTIL_SECURE_RNG_SET_URANDOM_DEVICE_FILE
evutil_secure_rng_set_urandom_device_file(
(char*) sandbox_intern_string("/dev/urandom"));
+#endif
}
switch (get_options()->command) {