/glassfish-3.1.2/tests/quicklook/weld/numberguess/src/java/numberguess/ |
H A D | Generator.java | 55 private java.util.Random random = new java.util.Random( System.currentTimeMillis() ); field in class:Generator 61 return random;
|
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/security/ |
H A D | SecurityUtils.java | 51 SecureRandom random = new SecureRandom(); 53 random.nextBytes(bb);
|
/glassfish-3.1.2/security/jaspic-provider-framework/src/test/java/test/com/sun/jaspic/config/ |
H A D | RuntimeSurrogate.java | 190 static Random random = new Random(); field in class:RuntimeSurrogate.TestThread 214 runAsConsumer = (random.nextInt(threads.length / 10) != 1); 219 doConsumer(f, layers[random.nextInt(layers.length)], contexts[random.nextInt(contexts.length)]); 231 switch (random.nextInt(5)) { 233 if (random.nextInt(25) == 1) { 242 if (random.nextInt(1000) == 1) { 255 layers[random.nextInt(layers.length)], 256 contexts[random.nextInt(contexts.length)], 265 providers[random [all...] |
H A D | FactoryTest.java | 106 static Random random = new Random(); field in class:FactoryTest 689 runAsConsumer = (random.nextInt(10) != 1); 714 doConsumer(f, layers[random.nextInt(layers.length)], 715 contexts[random.nextInt(contexts.length)]); 725 switch (random.nextInt(5)) { 727 if (random.nextInt(25) == 1) { 739 if (random.nextInt(1000) == 1) { 762 layers[random.nextInt(layers.length)], 763 contexts[random.nextInt(contexts.length)], 775 providers[random [all...] |
/glassfish-3.1.2/admin/rest/src/test/java/org/glassfish/admin/rest/ |
H A D | DomainTest.java | 58 // Select a random locale so we're not setting the locale to its current value 69 final int random = new Random().nextInt(locales.size()); 70 String newLocale = locales.get(random);
|
H A D | RestTestBase.java | 131 SecureRandom random = new SecureRandom(); 133 return new BigInteger(130, random).toString(16);
|
/glassfish-3.1.2/cluster/ssh/src/main/java/org/glassfish/cluster/ssh/connect/ |
H A D | NodeRunnerDcom.java | 159 String random = "" + System.nanoTime();
162 if (random.length() > 16)
163 random = random.substring(random.length() - 16);
165 random += "" + new Random(System.currentTimeMillis()).nextInt(10000);
167 return path + "\\DELETE_ME_" + random;
|
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/admin/ |
H A D | LocalPasswordImpl.java | 56 * Manage a local password, which is a cryptographically secure random number 87 SecureRandom random = new SecureRandom(); 89 random.nextBytes(pwd);
|
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/filters/ |
H A D | CsrfPreventionFilter.java | 244 byte random[] = new byte[16]; 249 randomSource.nextBytes(random); 251 for (int j = 0; j < random.length; j++) { 252 byte b1 = (byte) ((random[j] & 0xf0) >> 4); 253 byte b2 = (byte) (random[j] & 0x0f);
|
/glassfish-3.1.2/common/glassfish-naming/src/main/java/com/sun/enterprise/naming/impl/ |
H A D | RoundRobinPolicy.java | 90 * Using the Random API, generate a random number between 1 and10+30+40+20. 331 int random = rand.nextInt( list.size() ) ; 332 String elem = list.remove( random ) ; 349 int random = 0; 350 //make sure that the random # is not 0 354 //on. Hence we dont want random # to be 0. 357 while( random == 0) { 358 random = rand.nextInt(totalWeight); 359 if ( random != 0) { 363 // fineLog( "getNextRotation : random # [all...] |
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/authenticator/ |
H A D | AuthenticatorBase.java | 124 * The number of random bytes to include when generating a 164 * the initialization of our random number generator. 182 * A random number generator to use when generating session identifiers. 184 protected Random random = null; field in class:AuthenticatorBase 187 * The Java class name of the random number generator class to be used 319 * Return the random number generator class name. 327 * Set the random number generator class name. 329 * @param randomClass The new random number generator class name 714 * Return the random number generator instance we should use for 720 if (this.random [all...] |
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/session/ |
H A D | ManagerBase.java | 142 * the initialization of our random number generator. 180 * A random number generator to use when generating session identifiers. 182 protected Random random = null; field in class:ManagerBase 194 * The Java class name of the random number generator class to be used 527 * Use /dev/random-type special device. This is new code, but may reduce 528 * the big delay in generating the random. 530 * You must specify a path to a random generator file. Use /dev/urandom 531 * for linux ( or similar ) systems. Use /dev/random for maximum security 532 * ( it may block if not enough "random" exist ). You can also use 533 * a pipe that generates random [all...] |
H A D | StandardManager.java | 826 // Force initialization of the random number generator 828 log.finest("Force random number initialization starting"); 831 log.finest("Force random number initialization completed"); 906 // Require a new random number generator if we are restarted 907 this.random = null;
|
H A D | PersistentManagerBase.java | 1222 // Force initialization of the random number generator 1224 log.finest("Force random number initialization starting"); 1227 log.finest("Force random number initialization completed"); 1277 // Require a new random number generator if we are restarted 1278 this.random = null;
|
/glassfish-3.1.2/admingui/core/src/main/java/org/glassfish/admingui/registration/ |
H A D | RegisterHandlers.java | 98 Random random = new Random(); 101 int num = Math.abs(random.nextInt() % maxImageCount);
|
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/core/ |
H A D | StandardServer.java | 255 * A random number generator that is <strong>only</strong> used if 258 private Random random = null; field in class:StandardServer 515 if (random == null) 516 random = new Random(System.currentTimeMillis()); 517 expected += random.nextInt(1024);
|
/glassfish-3.1.2/cluster/gms-adapter/src/main/java/org/glassfish/gms/ |
H A D | GMSConfigUpgrade.java | 256 return Integer.valueOf(Math.round((float)(Math.random() * portInterval)) + MIN_GMS_MULTICAST_PORT).toString(); 264 heartbeatAddressBfr.append(Math.round(Math.random() * MAX_GMS_MULTICAST_ADDRESS_SUBRANGE)) 266 .append(Math.round(Math.random() * MAX_GMS_MULTICAST_ADDRESS_SUBRANGE));
|
/glassfish-3.1.2/common/common-util/src/test/java/org/glassfish/common/util/admin/locking/ |
H A D | FileLockTest.java | 71 final Random random = new Random(); 104 Thread.sleep(random.nextInt(300)); 131 final Random random = new Random(); 148 Thread.sleep(random.nextInt(300));
|
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/web/ |
H A D | WebVerifier.java | 225 Random random=new Random(); 228 float f=random.nextFloat();
|
/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/resources/ |
H A D | ResourceCache.java | 86 protected Random random = new Random(); field in class:ResourceCache 283 entryPos = random.nextInt(cache.length) ;
|
/glassfish-3.1.2/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/ |
H A D | Cluster.java | 675 // generate a random port since user did not provide one. 754 final int MAX_GMS_MULTICAST_PORT = 32000; // be pessimistic for generation of random port and assume 758 return Integer.valueOf(Math.round((float)(Math.random() * portInterval)) + MIN_GMS_MULTICAST_PORT).toString(); 765 heartbeatAddressBfr.append(Math.round(Math.random()*MAX_GMS_MULTICAST_ADDRESS_SUBRANGE)) 767 .append(Math.round(Math.random()*MAX_GMS_MULTICAST_ADDRESS_SUBRANGE));
|
/glassfish-3.1.2/ejb/ejb-container/src/main/java/org/glassfish/ejb/startup/ |
H A D | EjbDeployer.java | 137 private static Random random = new Random(); field in class:EjbDeployer 614 // Try a random instance in a cluster 615 int useInstance = random.nextInt(instances.size());
|
/glassfish-3.1.2/admingui/devtests/src/test/java/org/glassfish/admingui/devtests/ |
H A D | BaseSeleniumTestClass.java | 366 SecureRandom random = new SecureRandom(); 369 return "a" + new BigInteger(130, random).toString(16);
|
/glassfish-3.1.2/web/web-ajp/src/main/java/org/apache/jk/common/ |
H A D | HandlerRequest.java | 173 requiredSecret=Double.toString(Math.random());
|
/glassfish-3.1.2/tests/community/web/jruby/helloapp/public/javascripts/ |
H A D | effects.js | 174 return ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random()/4;
|