summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-02-28 08:36:13 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-02-28 08:36:13 +1100
commit269c93401ea523ef9a1278d0798cf2613ccc0cb6 (patch)
treebe1fca20d40a4ae800b1810ad3ce961504550f06
parent3526d1d48c86881c3fb8e54ae614d81deb242374 (diff)
downloadsamba-269c93401ea523ef9a1278d0798cf2613ccc0cb6.tar.gz
samba-269c93401ea523ef9a1278d0798cf2613ccc0cb6.tar.bz2
samba-269c93401ea523ef9a1278d0798cf2613ccc0cb6.zip
Do not re-randomise in an individual test.
smbtorture calls srandom() once for the whole suite, with command line override to allow reproduceable random tests. Andrew Bartlett (This used to be commit 68dcd1073cfed830fb6e2013e27d2ebbc443c451)
-rw-r--r--source4/torture/libnet/libnet_user.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c
index 6ea670629e..94711c1dea 100644
--- a/source4/torture/libnet/libnet_user.c
+++ b/source4/torture/libnet/libnet_user.c
@@ -343,8 +343,6 @@ static void set_test_changes(TALLOC_CTX *mem_ctx, struct libnet_ModifyUser *r,
struct timeval now;
int i, testfld;
- srandom((unsigned)time(NULL));
-
printf("Fields to change: [");
for (i = 0; i < num_changes && i < FIELDS_NUM; i++) {