From: bdemsky Date: Tue, 3 Mar 2009 07:25:47 +0000 (+0000) Subject: use the same random number generator X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9092f25d1eb7ffba28576ec1bb4e7140e0780ceb;p=IRC.git use the same random number generator --- 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);