< prev index next >
test/hotspot/jtreg/vmTestbase/gc/hashcode/ExternalHashingTest/ExternalHashingTest.java
Print this page
rev 59093 : [mq]: randomness-code_vmTestbase_gc
@@ -56,10 +56,12 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.Vector;
+import jdk.test.lib.Utils;
+
/**
* Test the possible interaction of external hashing and locking on object
* headers.
*
* The approach is to nearly simultaneously lock/hash a relatively small group
@@ -75,11 +77,11 @@
*/
public final class ExternalHashingTest {
/** Random number generator. */
- static Random rand = new Random();
+ static Random rand = Utils.getRandomInstance();
/** Goes to true when the threads should start working. */
public static volatile boolean startingGun;
/** Goes to true when the hashing thread is done. */
< prev index next >