diff options
Diffstat (limited to 'src/polypcore/random.c')
-rw-r--r-- | src/polypcore/random.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/polypcore/random.c b/src/polypcore/random.c index 1c2280e3..ffd40474 100644 --- a/src/polypcore/random.c +++ b/src/polypcore/random.c @@ -36,10 +36,6 @@ #include "random.h" -#ifndef OS_IS_WIN32 -#define RANDOM_DEVICE "/dev/urandom" -#endif - void pa_random(void *ret_data, size_t length) { int fd; ssize_t r = 0; @@ -64,8 +60,6 @@ void pa_random(void *ret_data, size_t length) { ", falling back to unsecure pseudo RNG.\n", strerror(errno)); #endif - srand(time(NULL)); - for (p = ret_data, l = length; l > 0; p++, l--) *p = (uint8_t) rand(); } |