From 98e407a02169f65c5518472f9e1edf7ec79c3a8c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 24 Aug 2001 04:57:13 +0000 Subject: allow for 0 range locks in locktest (This used to be commit c3b2d959a7461cf6f9574716c8a7b915c078b311) --- source3/torture/locktest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/torture/locktest.c') diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index f7f7c580aa..54cf0dd351 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -388,7 +388,7 @@ static void test_locks(char *share[NSERVERS]) recorded[n].conn = random() % NCONNECTIONS; recorded[n].f = random() % NFILES; recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1)); - recorded[n].len = 1 + + recorded[n].len = random() % (LOCKRANGE-(recorded[n].start-LOCKBASE)); recorded[n].start *= RANGE_MULTIPLE; recorded[n].len *= RANGE_MULTIPLE; -- cgit