Permalink
Browse files

Fix compilation of evutil_rand on osx

  • Loading branch information...
1 parent 1d8240c commit 172896831cfc47b86936ef81492a8b05bccf2fc4 Nick Mathewson committed Mar 23, 2012
Showing with 9 additions and 6 deletions.
  1. +9 −6 evutil_rand.c
View
@@ -57,6 +57,10 @@ evutil_secure_rng_global_setup_locks_(const int enable_locks)
return 0;
}
#endif
+static void
+evutil_free_secure_rng_globals_locks(void)
+{
+}
static void
ev_arc4random_buf(void *buf, size_t n)
@@ -125,12 +129,6 @@ evutil_free_secure_rng_globals_locks(void)
return;
}
-void
-evutil_free_secure_rng_globals_(void)
-{
- evutil_free_secure_rng_globals_locks();
-}
-
int
evutil_secure_rng_init(void)
{
@@ -165,3 +163,8 @@ evutil_secure_rng_add_bytes(const char *buf, size_t n)
n>(size_t)INT_MAX ? INT_MAX : (int)n);
}
+void
+evutil_free_secure_rng_globals_(void)
+{
+ evutil_free_secure_rng_globals_locks();
+}

0 comments on commit 1728968

Please sign in to comment.