Searched defs:random (Results 1 - 8 of 8) sorted by relevance

/glassfish-3.1.2/tests/quicklook/weld/numberguess/src/java/numberguess/
H A DGenerator.java55 private java.util.Random random = new java.util.Random( System.currentTimeMillis() ); field in class:Generator
61 return random;
/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/resources/
H A DResourceCache.java86 protected Random random = new Random(); field in class:ResourceCache
283 entryPos = random.nextInt(cache.length) ;
/glassfish-3.1.2/security/jaspic-provider-framework/src/test/java/test/com/sun/jaspic/config/
H A DRuntimeSurrogate.java190 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 DFactoryTest.java106 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/ejb/ejb-container/src/main/java/org/glassfish/ejb/startup/
H A DEjbDeployer.java137 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/web/web-core/src/main/java/org/apache/catalina/authenticator/
H A DAuthenticatorBase.java124 * 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/core/
H A DStandardServer.java255 * 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/web/web-core/src/main/java/org/apache/catalina/session/
H A DManagerBase.java142 * 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...]

Completed in 717 milliseconds