aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
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) {