diff options
author | Ziv Scully <ziv@mit.edu> | 2015-09-12 17:11:33 -0400 |
---|---|---|
committer | Ziv Scully <ziv@mit.edu> | 2015-09-12 17:11:33 -0400 |
commit | 6aadea0202190d17a35f289f984eb19ec8116672 (patch) | |
tree | e981fc563a09eab62b50f3ba52eaa01cac157f3e /src/c/urweb.c | |
parent | 5c4c302aea71f47679e8d8b4197f869355b2180a (diff) | |
parent | 03f1d80a665c4de6fd83ff6dc9399dda97838efa (diff) |
Merge.
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r-- | src/c/urweb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index faef4d3a..66fedfa2 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -169,13 +169,8 @@ void *uw_init_client_data(); void uw_free_client_data(void *); void uw_copy_client_data(void *dst, void *src); -static pthread_mutex_t rand_mutex = PTHREAD_MUTEX_INITIALIZER; - static uw_Basis_int my_rand() { - pthread_mutex_lock(&rand_mutex); int ret, r = RAND_bytes((unsigned char *)&ret, sizeof ret); - pthread_mutex_unlock(&rand_mutex); - if (r) return abs(ret); else |