Do not re-randomise in an individual test.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Feb 2008 21:36:13 +0000 (08:36 +1100)
committerAndrew 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

source/torture/libnet/libnet_user.c

index 6ea670629e92e216496eb16b2118dafd95b959d1..94711c1dead968eba847ee8088ce66743e6f82ba 100644 (file)
@@ -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++) {