diff options
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd.c | 2 | ||||
-rw-r--r-- | source3/nmbd/nmbd_browsesync.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index ba72724d2b..bdafdd44fc 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -557,7 +557,7 @@ static void usage(char *pname) StartupTime = time(NULL); - srandom(time(NULL) ^ getpid()); + sys_srandom(time(NULL) ^ getpid()); TimeInit(); diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c index 5969395ef7..da514076e6 100644 --- a/source3/nmbd/nmbd_browsesync.c +++ b/source3/nmbd/nmbd_browsesync.c @@ -593,7 +593,7 @@ void sync_all_dmbs(time_t t) /* sync with a probability of 1/count */ for (work=unicast_subnet->workgrouplist; work; work = work->next) { if (strcmp(global_myworkgroup, work->work_group)) { - if (((unsigned)random()) % count != 0) continue; + if (((unsigned)sys_random()) % count != 0) continue; lastrun = t; |