Skip to contentSkip to conversation

cluster/dlm/tests/usertest dlmtest2.c

Cluster-devel [email protected] 1 participant 1 message Aug 23, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2007-08-23 19:13:54

Modified files:
dlm/tests/usertest: dlmtest2.c

Log message:
dstress fixes

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/usertest/dlmtest2.c.diff?cvsroot=cluster&r1=1.9&r2=1.10

dlm/tests/usertest/dlmtest2.c +3 -0
@@ -754,6 +754,7 @@
 
 		if (n && !(n % 60))
 			unlock_all();
+		n++;
 
 		i = rand_int(0, maxn-1);
 		lk = get_lock(i);
@@ -1309,6 +1310,8 @@
 	struct lk *lk;
 	int i, rv, maxi = 0, quit = 0;
 
+	srandom(time(NULL));
+
 	decode_arguments(argc, argv);
 
 	if (maxn < maxr) {