diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-21 13:16:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:04 -0500 |
commit | 913006fa2e136001ea59182392fef08f65c2acfc (patch) | |
tree | 8c138e33519227f645dba489e1da73c3a91961e6 /source4/torture | |
parent | 6f0aef31cdfa9b486d1f2e0f097e071830f5600d (diff) | |
download | samba-913006fa2e136001ea59182392fef08f65c2acfc.tar.gz samba-913006fa2e136001ea59182392fef08f65c2acfc.tar.bz2 samba-913006fa2e136001ea59182392fef08f65c2acfc.zip |
r4899: fixed build
(This used to be commit 852f1e73b4b4241a61372279318c23369488d3bc)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/torture.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 63793b41da..638150e91b 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -265,7 +265,7 @@ static BOOL rw_torture(struct smbcli_state *c) for (i=0;i<torture_numops;i++) { - uint_t n = (uint_t)sys_random()%10; + uint_t n = (uint_t)random()%10; if (i % 10 == 0) { printf("%d\r", i); fflush(stdout); } @@ -359,7 +359,7 @@ static BOOL rw_torture3(struct smbcli_state *c, const char *lockfname) for (i = 0; i < sizeof(buf); i += sizeof(uint32_t)) { - SIVAL(buf, i, sys_random()); + SIVAL(buf, i, random()); } if (procnum == 0) @@ -399,7 +399,7 @@ static BOOL rw_torture3(struct smbcli_state *c, const char *lockfname) if (procnum == 0) { - sent = ((uint_t)sys_random()%(20))+ 1; + sent = ((uint_t)random()%(20))+ 1; if (sent > sizeof(buf) - count) { sent = sizeof(buf) - count; @@ -480,7 +480,7 @@ static BOOL rw_torture2(struct smbcli_state *c1, struct smbcli_state *c2) for (i=0;i<torture_numops;i++) { - size_t buf_size = ((uint_t)sys_random()%(sizeof(buf)-1))+ 1; + size_t buf_size = ((uint_t)random()%(sizeof(buf)-1))+ 1; if (i % 10 == 0) { printf("%d\r", i); fflush(stdout); } @@ -2198,7 +2198,7 @@ double torture_create_procs(BOOL (*fn)(struct smbcli_state *, int), BOOL *result const char *hostname=NULL, *sharename; pid_t mypid = getpid(); - sys_srandom(((int)mypid) ^ ((int)time(NULL))); + srandom(((int)mypid) ^ ((int)time(NULL))); asprintf(&myname, "CLIENT%d", i); lp_set_cmdline("netbios name", myname); |