From 9092f25d1eb7ffba28576ec1bb4e7140e0780ceb Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 3 Mar 2009 07:25:47 +0000 Subject: [PATCH] use the same random number generator --- .../Distributed/LookUpService/dsm/LookUpService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Robust/src/Benchmarks/Distributed/LookUpService/dsm/LookUpService.java b/Robust/src/Benchmarks/Distributed/LookUpService/dsm/LookUpService.java index c324e5d4..c61fa543 100644 --- a/Robust/src/Benchmarks/Distributed/LookUpService/dsm/LookUpService.java +++ b/Robust/src/Benchmarks/Distributed/LookUpService/dsm/LookUpService.java @@ -50,8 +50,9 @@ public class LookUpService extends Thread { } // Do read/writes + Random rand = new Random(0); + for (int i = 0; i < ntrans; i++) { - Random rand = new Random(i); atomic { for(int j = 0; j < nLookUp; j++) { int rdwr = rand.nextInt(100); -- 2.34.1