git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3526d1d
)
Do not re-randomise in an individual test.
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 27 Feb 2008 21:36:13 +0000
(08:36 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 27 Feb 2008 21:36:13 +0000
(08:36 +1100)
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
)
source4/torture/libnet/libnet_user.c
patch
|
blob
|
history
diff --git
a/source4/torture/libnet/libnet_user.c
b/source4/torture/libnet/libnet_user.c
index 6ea670629e92e216496eb16b2118dafd95b959d1..94711c1dead968eba847ee8088ce66743e6f82ba 100644
(file)
--- 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;
struct timeval now;
int i, testfld;
- srandom((unsigned)time(NULL));
-
printf("Fields to change: [");
for (i = 0; i < num_changes && i < FIELDS_NUM; i++) {
printf("Fields to change: [");
for (i = 0; i < num_changes && i < FIELDS_NUM; i++) {