summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-21 13:16:33 +0000
committerAndrew Tridgell <tridge@samba.org>2005-01-21 13:16:33 +0000
commite2078aaee1ba2bf5c93cc7939fcc2a60654dae82 (patch)
tree262976185ac6e2793b185c3b7441a2b813837878 /source/torture
parent217f106ce02b7ce9cd077558374b98d9e625a795 (diff)
downloadsamba-e2078aaee1ba2bf5c93cc7939fcc2a60654dae82.tar.gz
samba-e2078aaee1ba2bf5c93cc7939fcc2a60654dae82.tar.xz
samba-e2078aaee1ba2bf5c93cc7939fcc2a60654dae82.zip
r4899: fixed build
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/torture.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c
index 63793b41dab..638150e91bc 100644
--- a/source/torture/torture.c
+++ b/source/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);