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

123

/openjdk7/jdk/test/sun/security/provider/SeedGenerator/
H A DPriority_Inversion.java51 RandomTest rand = new RandomTest();
52 InvertTest invert = new InvertTest(deltaPriority, rand);
53 rand.start();
62 SecureRandom rand = new SecureRandom();
63 rand.nextBytes(new byte[5]);
76 private RandomTest rand; field in class:InvertTest
78 InvertTest(int delta, RandomTest rand) { argument
80 this.rand = rand;
89 rand
[all...]
/openjdk7/jdk/test/java/io/Serializable/sanityCheck/
H A DSanityCheck.java36 static Random rand = new Random(System.currentTimeMillis()); field in class:Item
60 z = rand.nextBoolean();
61 b = (byte) rand.nextInt();
62 c = (char) rand.nextInt();
63 s = (short) rand.nextInt();
64 i = rand.nextInt();
65 f = rand.nextFloat();
66 j = rand.nextLong();
67 d = rand.nextDouble();
80 zary[i] = rand
[all...]
/openjdk7/jdk/test/java/security/Signature/
H A DTestInitSignWithMyOwnRandom.java41 TestRandomSource rand = new TestRandomSource();
43 sig.initSign(kp.getPrivate(), rand);
46 if (rand.isUsed()) {
/openjdk7/jdk/test/javax/management/loading/LibraryLoader/jar_src/
H A DRandomGen.c10 return rand();
/openjdk7/jdk/test/java/nio/file/Files/walkFileTree/
H A DCreateFileTree.java35 static final Random rand = new Random(); field in class:CreateFileTree
44 int total = 1 + rand.nextInt(20);
48 int r = Math.min((total-n), (1+rand.nextInt(3)));
62 int x = rand.nextInt(dirs.size());
67 int links = 1 + rand.nextInt(5);
69 int x = rand.nextInt(dirs.size());
72 y = rand.nextInt(dirs.size());
H A DTerminateWalk.java35 static final Random rand = new Random(); field in class:TerminateWalk
41 if (rand.nextInt(10) == 0) {
H A DSkipSiblings.java35 static final Random rand = new Random(); field in class:SkipSiblings
47 if (parent != null && rand.nextBoolean()) {
/openjdk7/jdk/test/java/io/Serializable/corruptedUTFConsumption/
H A DCorruptedUTFConsumption.java38 static Random rand = new Random(System.currentTimeMillis()); field in class:CorruptedUTFConsumption
52 utf[utf.length - 1] = (byte) (0xC0 | rand.nextInt() & 0x1F);
56 utf[utf.length - 1] = (byte) (0xE0 | rand.nextInt() & 0x0F);
61 utf[utf.length - 2] = (byte) (0xE0 | rand.nextInt() & 0x0F);
62 utf[utf.length - 1] = (byte) (0x80 | rand.nextInt() & 0x3F);
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DClosedByInterrupt.java38 static final Random rand = new Random(); field in class:ClosedByInterrupt
48 rand.nextBytes(b);
87 Thread.sleep(500 + rand.nextInt(1000));
92 Thread.sleep(rand.nextInt(50));
116 this.writer = rand.nextBoolean();
122 rand.nextBytes(bb.array());
126 long position = rand.nextInt(K*K - bb.capacity());
137 Thread.sleep(rand.nextInt(50));
H A DAtomicAppend.java43 static final Random rand = new Random(); field in class:AtomicAppend
47 if (rand.nextBoolean()) {
56 if (rand.nextBoolean()) {
68 if (rand.nextBoolean()) {
87 if (rand.nextBoolean()) {
H A DTransferToChannel.java78 Random rand = new Random(0);
93 rand.nextBytes(expected);
129 Random rand = new Random(0);
131 rand.nextBytes(randomBytes);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DKerberosClientKeyExchange.java77 SecureRandom rand) throws IOException {
80 init(serverName, isLoopback, acc, protocolVersion, rand);
87 ProtocolVersion clientVersion, SecureRandom rand,
91 init(protocolVersion, clientVersion, rand, input, serverKeys);
119 SecureRandom rand) throws IOException {
122 impl.init(serverName, isLoopback, acc, protocolVersion, rand);
127 ProtocolVersion clientVersion, SecureRandom rand,
131 impl.init(protocolVersion, clientVersion, rand, input, serverKeys);
75 KerberosClientKeyExchange(String serverName, boolean isLoopback, AccessControlContext acc, ProtocolVersion protocolVersion, SecureRandom rand) argument
86 KerberosClientKeyExchange(ProtocolVersion protocolVersion, ProtocolVersion clientVersion, SecureRandom rand, HandshakeInStream input, SecretKey[] serverKeys) argument
117 init(String serverName, boolean isLoopback, AccessControlContext acc, ProtocolVersion protocolVersion, SecureRandom rand) argument
126 init(ProtocolVersion protocolVersion, ProtocolVersion clientVersion, SecureRandom rand, HandshakeInStream input, SecretKey[] serverKeys) argument
/openjdk7/jdk/test/java/nio/channels/Channels/
H A DBasic2.java37 static final Random rand = new Random(); field in class:Basic2
92 byte[] buf = new byte[128 + rand.nextInt(128)];
94 if (rand.nextBoolean()) {
99 len = 1 + rand.nextInt(64);
100 off = rand.nextInt(64);
131 this.total = 50*1000 + rand.nextInt(50*1000);
139 byte[] buf = new byte[1 + rand.nextInt(rem)];
143 if (rand.nextBoolean()) {
147 off = rand.nextInt(buf.length);
149 len = (r <= 1) ? 1 : (1 + rand
[all...]
H A DShortWrite.java38 static Random rand = new Random(); field in class:ShortWrite
48 int n = rand.nextInt(rem) + 1;
/openjdk7/jdk/test/java/nio/file/WatchService/
H A DSensitivityModifier.java41 static final Random rand = new Random(); field in class:SensitivityModifier
48 sensitivtives[ rand.nextInt(sensitivtives.length) ];
60 int nDirs = 5 + rand.nextInt(20);
61 int nFiles = 50 + rand.nextInt(50);
68 Path dir = dirs[rand.nextInt(nDirs)];
82 Path file = files[rand.nextInt(nFiles)];
/openjdk7/jdk/test/java/text/Format/MessageFormat/
H A DBug7003643.java41 Random rand = new Random();
49 sb.append(elements[rand.nextInt(elements.length)]);
/openjdk7/jdk/test/java/nio/channels/AsynchronousChannelGroup/
H A DRestart.java44 static final Random rand = new Random(); field in class:Restart
68 int nThreads = 1 + rand.nextInt(4);
76 group = AsynchronousChannelGroup.withCachedThreadPool(pool, rand.nextInt(5));
106 if (rand.nextBoolean()) {
H A DBasic.java39 static final Random rand = new Random(); field in class:Basic
61 if (rand.nextBoolean()) {
63 group = AsynchronousChannelGroup.withCachedThreadPool(pool, rand.nextInt(5));
65 int nThreads = 1 + rand.nextInt(8);
83 if (rand.nextBoolean()) {
85 group = AsynchronousChannelGroup.withCachedThreadPool(pool, rand.nextInt(10));
87 int nThreads = 1 + rand.nextInt(8);
92 switch (rand.nextInt(2)) {
119 if (rand.nextBoolean()) {
122 .withCachedThreadPool(pool, rand
[all...]
H A DIdentity.java43 static final Random rand = new Random(); field in class:Identity
107 final int groupCount = 3 + rand.nextInt(8);
113 if (rand.nextBoolean()) {
114 int nThreads = 1 + rand.nextInt(10);
118 group = AsynchronousChannelGroup.withCachedThreadPool(pool, rand.nextInt(5));
138 int id = rand.nextInt(groupCount);
165 if (rand.nextBoolean()) {
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DStressLoopback.java36 static final Random rand = new Random(); field in class:StressLoopback
47 int count = 2 + rand.nextInt(9);
94 int size = 1024 + rand.nextInt(10000);
95 this.sentBuffer = (rand.nextBoolean()) ?
137 int size = 1024 + rand.nextInt(10000);
138 this.readBuffer = (rand.nextBoolean()) ?
/openjdk7/jdk/test/java/io/Serializable/proxy/
H A DBasic.java86 Random rand = new Random();
87 int foo = rand.nextInt();
88 float bar = rand.nextFloat();
/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DCloseDuringWrite.java38 static final Random rand = new Random(); field in class:CloseDuringWrite
71 int when = 1000 + rand.nextInt(2000);
79 int limit = rand.nextInt(bb.capacity());
/openjdk7/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));
/openjdk7/jdk/test/java/io/Serializable/longString/
H A DLongString.java35 Random rand = new Random(System.currentTimeMillis());
46 sbuf.append((char) rand.nextInt(Character.MAX_VALUE + 1));
/openjdk7/jdk/test/java/security/spec/
H A DEllipticCurveMatch.java47 Random rand = new Random();
49 rand.nextBytes(seed);

Completed in 566 milliseconds

123