summaryrefslogtreecommitdiff
path: root/source3/lib/genrand.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/genrand.c')
-rw-r--r--source3/lib/genrand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/genrand.c b/source3/lib/genrand.c
index c36cdd4b8c..bb1922e4f5 100644
--- a/source3/lib/genrand.c
+++ b/source3/lib/genrand.c
@@ -192,7 +192,7 @@ void generate_random_buffer( unsigned char *out, int len, BOOL re_seed)
unsigned char *p;
if(!done_reseed || re_seed) {
- srandom(do_reseed(md4_buf));
+ sys_srandom(do_reseed(md4_buf));
done_reseed = True;
}
@@ -218,7 +218,7 @@ void generate_random_buffer( unsigned char *out, int len, BOOL re_seed)
memcpy(md4_buf, tmp_buf, sizeof(md4_buf));
/* XOR in output from random(). */
for(i = 0; i < 4; i++)
- SIVAL(tmp_buf, i*4, (IVAL(tmp_buf, i*4) ^ (uint32)random()));
+ SIVAL(tmp_buf, i*4, (IVAL(tmp_buf, i*4) ^ (uint32)sys_random()));
memcpy(p, tmp_buf, copy_len);
p += copy_len;
len -= copy_len;