svn commit: samba r4899 - in branches/SAMBA_4_0/source/torture: .
tridge at samba.org
tridge at samba.org
Fri Jan 21 13:16:34 GMT 2005
Author: tridge
Date: 2005-01-21 13:16:33 +0000 (Fri, 21 Jan 2005)
New Revision: 4899
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4899
Log:
fixed build
Modified:
branches/SAMBA_4_0/source/torture/torture.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_4_0/source/torture/torture.c 2005-01-21 13:13:24 UTC (rev 4898)
+++ branches/SAMBA_4_0/source/torture/torture.c 2005-01-21 13:16:33 UTC (rev 4899)
@@ -265,7 +265,7 @@
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 @@
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 @@
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 @@
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 @@
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);
More information about the samba-cvs
mailing list