Searched refs:rand (Results 1 - 25 of 86) sorted by relevance

1234

/openjdk10/jdk/test/sun/security/provider/SeedGenerator/
H A DPriority_Inversion.java52 RandomTest rand = new RandomTest();
53 InvertTest invert = new InvertTest(deltaPriority, rand);
54 rand.start();
63 SecureRandom rand = new SecureRandom();
64 rand.nextBytes(new byte[5]);
77 private RandomTest rand; field in class:InvertTest
79 InvertTest(int delta, RandomTest rand) { argument
81 this.rand = rand;
90 rand
[all...]
/openjdk10/jdk/test/java/io/Serializable/sanityCheck/
H A DSanityCheck.java37 static Random rand = new Random(System.currentTimeMillis()); field in class:Item
61 z = rand.nextBoolean();
62 b = (byte) rand.nextInt();
63 c = (char) rand.nextInt();
64 s = (short) rand.nextInt();
65 i = rand.nextInt();
66 f = rand.nextFloat();
67 j = rand.nextLong();
68 d = rand.nextDouble();
81 zary[i] = rand
[all...]
/openjdk10/jdk/test/java/security/Signature/
H A DTestInitSignWithMyOwnRandom.java41 TestRandomSource rand = new TestRandomSource();
43 sig.initSign(kp.getPrivate(), rand);
46 if (rand.isUsed()) {
/openjdk10/jdk/test/javax/management/loading/LibraryLoader/jar_src/
H A DRandomGen.c10 return rand();
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/
H A DConditionTest.java40 Random rand = new Random(13);
46 JavaConstant a = JavaConstant.forInt(rand.nextInt());
47 JavaConstant b = JavaConstant.forInt(i < 100 ? a.asInt() : rand.nextInt());
61 Random rand = new Random(13);
68 JavaConstant a = JavaConstant.forInt(rand.nextInt());
69 JavaConstant b = JavaConstant.forInt(i < 100 ? a.asInt() : rand.nextInt());
86 Random rand = new Random(13);
93 JavaConstant a = JavaConstant.forInt(rand.nextInt());
94 JavaConstant b = JavaConstant.forInt(i < 100 ? a.asInt() : rand.nextInt());
/openjdk10/jdk/test/java/io/Serializable/corruptedUTFConsumption/
H A DCorruptedUTFConsumption.java39 static Random rand = new Random(System.currentTimeMillis()); field in class:CorruptedUTFConsumption
53 utf[utf.length - 1] = (byte) (0xC0 | rand.nextInt() & 0x1F);
57 utf[utf.length - 1] = (byte) (0xE0 | rand.nextInt() & 0x0F);
62 utf[utf.length - 2] = (byte) (0xE0 | rand.nextInt() & 0x0F);
63 utf[utf.length - 1] = (byte) (0x80 | rand.nextInt() & 0x3F);
/openjdk10/jdk/test/java/nio/channels/FileChannel/
H A DClosedByInterrupt.java39 static final Random rand = new Random(); field in class:ClosedByInterrupt
49 rand.nextBytes(b);
88 Thread.sleep(500 + rand.nextInt(1000));
93 Thread.sleep(rand.nextInt(50));
117 this.writer = rand.nextBoolean();
123 rand.nextBytes(bb.array());
127 long position = rand.nextInt(K*K - bb.capacity());
138 Thread.sleep(rand.nextInt(50));
H A DAtomicAppend.java44 static final Random rand = new Random(); field in class:AtomicAppend
48 if (rand.nextBoolean()) {
57 if (rand.nextBoolean()) {
69 if (rand.nextBoolean()) {
88 if (rand.nextBoolean()) {
H A DTransferToChannel.java80 Random rand = new Random(0);
95 rand.nextBytes(expected);
131 Random rand = new Random(0);
133 rand.nextBytes(randomBytes);
/openjdk10/jdk/test/java/nio/channels/Channels/
H A DBasic2.java38 static final Random rand = new Random(); field in class:Basic2
93 byte[] buf = new byte[128 + rand.nextInt(128)];
95 if (rand.nextBoolean()) {
100 len = 1 + rand.nextInt(64);
101 off = rand.nextInt(64);
132 this.total = 50*1000 + rand.nextInt(50*1000);
140 byte[] buf = new byte[1 + rand.nextInt(rem)];
144 if (rand.nextBoolean()) {
148 off = rand.nextInt(buf.length);
150 len = (r <= 1) ? 1 : (1 + rand
[all...]
/openjdk10/jdk/test/java/nio/file/Files/walkFileTree/
H A DCreateFileTree.java35 private static final Random rand = new Random(); field in class:CreateFileTree
58 int total = 1 + rand.nextInt(20);
62 int r = Math.min((total-n), (1+rand.nextInt(3)));
75 int x = rand.nextInt(dirs.size());
81 int links = 1 + rand.nextInt(5);
83 int x = rand.nextInt(dirs.size());
86 y = rand.nextInt(dirs.size());
H A DTerminateWalk.java40 static final Random rand = new Random(); field in class:TerminateWalk
46 if (rand.nextInt(10) == 0) {
H A DSkipSiblings.java40 static final Random rand = new Random(); field in class:SkipSiblings
52 if (parent != null && rand.nextBoolean()) {
89 if (rand.nextBoolean()) {
/openjdk10/jdk/test/java/nio/file/WatchService/
H A DSensitivityModifier.java43 static final Random rand = new Random(); field in class:SensitivityModifier
50 sensitivtives[ rand.nextInt(sensitivtives.length) ];
62 int nDirs = 5 + rand.nextInt(20);
63 int nFiles = 50 + rand.nextInt(50);
70 Path dir = dirs[rand.nextInt(nDirs)];
84 Path file = files[rand.nextInt(nFiles)];
/openjdk10/jdk/test/java/text/Format/MessageFormat/
H A DBug7003643.java42 Random rand = new Random();
50 sb.append(elements[rand.nextInt(elements.length)]);
/openjdk10/jdk/test/jdk/nio/zipfs/
H A DUtils.java45 Random rand = new Random();
53 rand.nextBytes(bytes);
/openjdk10/jdk/test/java/nio/channels/AsynchronousChannelGroup/
H A DRestart.java43 static final Random rand = new Random(); field in class:Restart
67 int nThreads = 1 + rand.nextInt(4);
78 group = AsynchronousChannelGroup.withCachedThreadPool(pool, rand.nextInt(5));
87 Executors.newFixedThreadPool(1+rand.nextInt(5), factory));
120 if (rand.nextBoolean()) {
H A DIdentity.java44 static final Random rand = new Random(); field in class:Identity
80 final int groupCount = 3 + rand.nextInt(8);
116 if (rand.nextBoolean()) {
117 int nThreads = 1 + rand.nextInt(10);
121 group = AsynchronousChannelGroup.withCachedThreadPool(pool, rand.nextInt(5));
141 int id = rand.nextInt(groupCount);
168 if (rand.nextBoolean()) {
/openjdk10/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DStressLoopback.java39 static final Random rand = new Random(); field in class:StressLoopback
50 int count = 2 + rand.nextInt(9);
97 int size = 1024 + rand.nextInt(10000);
98 this.sentBuffer = (rand.nextBoolean()) ?
140 int size = 1024 + rand.nextInt(10000);
141 this.readBuffer = (rand.nextBoolean()) ?
/openjdk10/hotspot/test/compiler/intrinsics/bigInteger/
H A DTestMulAdd.java89 Random rand = new Random();
93 rand.setSeed(seed);
98 b1 = new BigInteger(rand_int, rand);
H A DTestSquareToLen.java86 Random rand = new Random();
90 rand.setSeed(seed);
95 b1 = new BigInteger(rand_int, rand);
/openjdk10/jdk/test/java/io/Serializable/proxy/
H A DBasic.java87 Random rand = new Random();
88 int foo = rand.nextInt();
89 float bar = rand.nextFloat();
/openjdk10/jdk/test/java/nio/channels/SocketChannel/
H A DCloseDuringWrite.java39 static final Random rand = new Random(); field in class:CloseDuringWrite
72 int when = 1000 + rand.nextInt(2000);
80 int limit = rand.nextInt(bb.capacity());
/openjdk10/jdk/test/java/awt/geom/AffineTransform/
H A DGetTypeOptimization.java47 public static Random rand = new Random(); field in class:GetTypeOptimization
141 switch (rand.nextInt(4)) {
143 at.scale(rand.nextDouble() * 5 - 2.5,
144 rand.nextDouble() * 5 - 2.5);
147 at.shear(rand.nextDouble() * 5 - 2.5,
148 rand.nextDouble() * 5 - 2.5);
151 at.rotate(rand.nextDouble() * Math.PI * 2);
154 at.translate(rand.nextDouble() * 50 - 25,
155 rand.nextDouble() * 50 - 25);
/openjdk10/jdk/test/java/net/URLConnection/
H A DChunkedEncoding.java65 Random rand = new Random();
69 len = rand.nextInt(128*1024);
77 chunkSize = rand.nextInt(len / 3);
86 buf[i] = (byte)('a' + rand.nextInt(26));

Completed in 138 milliseconds

1234