hotspot/test/compiler/unsafe/UnsafeRaw.java
changeset 27453 9aeb9b97bef6
parent 26820 be0f5226f8cd
child 29678 dd2f3932c21e
--- a/hotspot/test/compiler/unsafe/UnsafeRaw.java	Sun Nov 02 18:43:00 2014 +0300
+++ b/hotspot/test/compiler/unsafe/UnsafeRaw.java	Sun Nov 02 18:43:38 2014 +0300
@@ -80,7 +80,7 @@
     final int element_size = 4;
     final int magic = 0x12345678;
 
-    Random rnd = new Random();
+    Random rnd = Utils.getRandomInstance();
 
     long array = unsafe.allocateMemory(array_size * element_size); // 128 ints
     long addr = array + array_size * element_size / 2; // something in the middle to work with