/openjdk7/jdk/test/sun/security/provider/SeedGenerator/ |
H A D | Priority_Inversion.java | 51 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 D | SanityCheck.java | 36 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 D | TestInitSignWithMyOwnRandom.java | 41 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 D | RandomGen.c | 10 return rand();
|
/openjdk7/jdk/test/java/nio/file/Files/walkFileTree/ |
H A D | CreateFileTree.java | 35 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 D | TerminateWalk.java | 35 static final Random rand = new Random(); field in class:TerminateWalk 41 if (rand.nextInt(10) == 0) {
|
H A D | SkipSiblings.java | 35 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 D | CorruptedUTFConsumption.java | 38 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 D | ClosedByInterrupt.java | 38 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 D | AtomicAppend.java | 43 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 D | TransferToChannel.java | 78 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 D | KerberosClientKeyExchange.java | 77 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 D | Basic2.java | 37 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 D | ShortWrite.java | 38 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 D | SensitivityModifier.java | 41 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 D | Bug7003643.java | 41 Random rand = new Random(); 49 sb.append(elements[rand.nextInt(elements.length)]);
|
/openjdk7/jdk/test/java/nio/channels/AsynchronousChannelGroup/ |
H A D | Restart.java | 44 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 D | Basic.java | 39 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 D | Identity.java | 43 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 D | StressLoopback.java | 36 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 D | Basic.java | 86 Random rand = new Random(); 87 int foo = rand.nextInt(); 88 float bar = rand.nextFloat();
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | CloseDuringWrite.java | 38 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 D | ChunkedEncoding.java | 65 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 D | LongString.java | 35 Random rand = new Random(System.currentTimeMillis()); 46 sbuf.append((char) rand.nextInt(Character.MAX_VALUE + 1));
|
/openjdk7/jdk/test/java/security/spec/ |
H A D | EllipticCurveMatch.java | 47 Random rand = new Random(); 49 rand.nextBytes(seed);
|