/prebuilts/go/darwin-x86/src/runtime/ |
hash_test.go | 298 random(r *rand.Rand) // set key to something random 314 func (k *BytesKey) random(r *rand.Rand) { func 337 func (k *Int32Key) random(r *rand.Rand) { func 360 func (k *Int64Key) random(r *rand.Rand) { func 383 func (k *EfaceKey) random(r *rand.Rand) { func 415 func (k *IfaceKey) random(r *rand.Rand) { func 460 // pick a random key, hash it 461 k.random(r) 482 // sum of coin flips such that a truly random experiment would hav [all...] |
/prebuilts/go/linux-x86/src/math/big/ |
nat.go | 897 // random creates a random integer in [0..limit), using the space in z if 899 func (z nat) random(rand *rand.Rand, limit nat, n int) nat { func
|
/prebuilts/go/linux-x86/src/runtime/ |
hash_test.go | 298 random(r *rand.Rand) // set key to something random 314 func (k *BytesKey) random(r *rand.Rand) { func 337 func (k *Int32Key) random(r *rand.Rand) { func 360 func (k *Int64Key) random(r *rand.Rand) { func 383 func (k *EfaceKey) random(r *rand.Rand) { func 415 func (k *IfaceKey) random(r *rand.Rand) { func 460 // pick a random key, hash it 461 k.random(r) 482 // sum of coin flips such that a truly random experiment would hav [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
random.py | 0 """Random variable generators. 9 pick random element 10 pick random sample 11 generate random permutation 37 * The random() method is implemented in C, executes in a single Python step, 51 __all__ = ["Random","seed","random","uniform","randint","choice","sample", 72 class Random(_random.Random): 73 """Random number generator base class used by bound module functions 684 def random(self): member in class:WichmannHill 807 def random(self): member in class:SystemRandom 881 random = _inst.random variable [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
random.py | 0 """Random variable generators. 9 pick random element 10 pick random sample 11 generate random permutation 37 * The random() method is implemented in C, executes in a single Python step, 51 __all__ = ["Random","seed","random","uniform","randint","choice","sample", 72 class Random(_random.Random): 73 """Random number generator base class used by bound module functions 684 def random(self): member in class:WichmannHill 807 def random(self): member in class:SystemRandom 881 random = _inst.random variable [all...] |
/toolchain/binutils/binutils-2.27/libiberty/ |
random.c | 33 * @(#)random.c 5.5 (Berkeley) 7/6/88 39 @deftypefn Supplement {long int} random (void) 45 Random number functions. @code{random} returns a random number in the 46 range 0 to @code{LONG_MAX}. @code{srandom} initializes the random 48 (else, the values returned by @code{random} are always the same for each 50 control over the state of the random number generator. 84 long int random (void); 86 /* An improved random number generation package. In addition to the standar 377 random (void) function [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
MinMaxPriorityQueueTest.java | 37 import java.util.Random; 185 Random random = new Random(0); local 197 int randomInt = random.nextInt(); 206 if (random.nextBoolean()) { 208 int randomInt = random.nextInt(); 214 if (random.nextBoolean()) { 229 " random mixture of operations", mmHeap.isIntact()); 533 Random random = new Random(0) local 547 Random random = new Random(seed); local 667 Random random = new Random(seed); local 750 Random random = new Random(seed); local [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
ImportWrappedKeyTest.java | 75 SecureRandom random = new SecureRandom(); field in class:ImportWrappedKeyTest 78 random.setSeed(0); 81 random.nextBytes(keyMaterial); 124 random.setSeed(0); 127 random.nextBytes(keyMaterial); 172 random.setSeed(0); 175 random.nextBytes(keyMaterial); 194 random.setSeed(0); 197 random.nextBytes(keyMaterial); 207 random.setSeed(0) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerFlakyNetworkTest.java | 40 import java.util.Random; 119 Random random = new Random(seed); local 122 String video = getRandomTestVideo(random, supported); 127 doPlayMp4Stream(getRandomTestVideo(random, supported), 30000, 20000); 131 private String getRandomTestVideo(Random random, String[] videos) { 132 return videos[random.nextInt(videos.length)]; 152 Random random = new Random(1) local 162 Random random = new Random(1); local 233 final Random random = new Random(seed); local 333 float random = mRandom.nextFloat(); local [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
AllocationCopyPaddedTest.java | 22 import java.util.Random; 26 Random random = new Random(0x172d8ab9); local 27 int width = random.nextInt(128);; 32 random.nextBytes(inArray); 54 Random random = new Random(0x172d8ab9); local 55 int width = random.nextInt(128) 83 Random random = new Random(0x172d8ab9); local 113 Random random = new Random(0x172d8ab9); local 149 Random random = new Random(0x172d8ab9); local 186 Random random = new Random(0x172d8ab9); local 224 Random random = new Random(0x172d8ab9); local 255 Random random = new Random(0x172d8ab9); local 287 Random random = new Random(0x172d8ab9); local 320 Random random = new Random(0x172d8ab9); local 350 Random random = new Random(0x172d8ab9); local 381 Random random = new Random(0x172d8ab9); local 414 Random random = new Random(0x172d8ab9); local 444 Random random = new Random(0x172d8ab9); local 475 Random random = new Random(0x172d8ab9); local 508 Random random = new Random(0x172d8ab9); local 539 Random random = new Random(0x172d8ab9); local 571 Random random = new Random(0x172d8ab9); local 605 Random random = new Random(0x172d8ab9); local 641 Random random = new Random(0x172d8ab9); local 685 Random random = new Random(0x172d8ab9); local 724 Random random = new Random(0x172d8ab9); local 763 Random random = new Random(0x172d8ab9); local 802 Random random = new Random(0x172d8ab9); local 835 Random random = new Random(0x172d8ab9); local 876 Random random = new Random(0x172d8ab9); local 912 Random random = new Random(0x172d8ab9); local 948 Random random = new Random(0x172d8ab9); local 985 Random random = new Random(0x172d8ab9); local 1021 Random random = new Random(0x172d8ab9); local 1065 Random random = new Random(0x172d8ab9); local 1104 Random random = new Random(0x172d8ab9); local 1143 Random random = new Random(0x172d8ab9); local [all...] |
AllocationCopyToTest.java | 22 import java.util.Random; 36 Random random = new Random(0x172d8ab9); local 37 int width = random.nextInt(512); 42 random.nextBytes(inArray); 47 int offset = random.nextInt(arr_len); 70 Random random = new Random(0x172d8ab9) local 118 Random random = new Random(0x172d8ab9); local 155 Random random = new Random(0x172d8ab9); local 192 Random random = new Random(0x172d8ab9); local 229 Random random = new Random(0x172d8ab9); local 260 Random random = new Random(0x172d8ab9); local 305 Random random = new Random(0x172d8ab9); local 339 Random random = new Random(0x172d8ab9); local 373 Random random = new Random(0x172d8ab9); local 407 Random random = new Random(0x172d8ab9); local 444 Random random = new Random(0x172d8ab9); local 489 Random random = new Random(0x172d8ab9); local 529 Random random = new Random(0x172d8ab9); local 569 Random random = new Random(0x172d8ab9); local 609 Random random = new Random(0x172d8ab9); local 652 Random random = new Random(0x172d8ab9); local 686 Random random = new Random(0x172d8ab9); local 728 Random random = new Random(0x172d8ab9); local 765 Random random = new Random(0x172d8ab9); local 802 Random random = new Random(0x172d8ab9); local [all...] |
DebugContext.java | 26 import java.util.Random; 107 Random RN; 118 RN = new Random(seed); 431 Random random = new Random(0x172d8ac1); local 432 int width = random.nextInt(128); 433 int height = random.nextInt(128); 434 int xOff = random.nextInt(width); 435 int yOff = random.nextInt(height) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
EmpiricalDistributionImpl.java | 18 package org.apache.commons.math.random; 48 * <strong>Generating random values from the distribution</strong><ol> 51 * <li>Generate a random Gaussian value with mean = mean of the associated 367 * Generates a random value from this distribution. 369 * @return the random value. 378 // Start with a uniformly distributed random number in (0,1) 379 double x = FastMath.random();
|
/external/deqp/framework/delibs/dethread/ |
deThreadTest.c | 369 deRandom random; local 374 deRandom_init(&random, 123); 386 val = deRandom_getUint32(&random);
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
AtomicLongMapTest.java | 28 import java.util.Random; 45 private Random random = new Random(301); field in class:AtomicLongMapTest 204 long addend = random.nextInt(MAX_ADDEND); 221 long value = random.nextInt(MAX_ADDEND); 239 long addend = random.nextInt(MAX_ADDEND); 256 long value = random.nextInt(MAX_ADDEND); 274 long newValue = random.nextInt(MAX_ADDEND); 291 long value = random.nextInt(MAX_ADDEND) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
XLocaleMatcherTest.java | 9 import java.util.Random; 174 Random random = new Random(); local 177 String x = codes[random.nextInt(codes.length)]; 178 String y = codes[random.nextInt(codes.length)];
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
XLocaleMatcherTest.java | 8 import java.util.Random; 171 Random random = new Random(); local 174 String x = codes[random.nextInt(codes.length)]; 175 String y = codes[random.nextInt(codes.length)];
|
/external/libvncserver/test/ |
tjunittest.c | 41 #define random() rand() macro 404 if(random()<RAND_MAX/2) srcBuf[i]=0; 422 if(random()<RAND_MAX/2) srcBuf[i]=0;
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/ |
WebSocketReaderTest.java | 23 import java.util.Random; 41 private final Random random = new Random(0); field in class:WebSocketReaderTest 406 random.nextBytes(junk);
|
WebSocketWriterTest.java | 20 import java.util.Random; 42 private final Random random = new Random(0); field in class:WebSocketWriterTest 60 private final WebSocketWriter serverWriter = new WebSocketWriter(false, data, random); 61 private final WebSocketWriter clientWriter = new WebSocketWriter(true, data, random); 172 random.nextBytes(maskKey1); 174 random.nextBytes(maskKey2); 176 random.setSeed(0); // Reset the seed so real data matches. 335 new Random(0).nextBytes(junk) [all...] |
/external/rappor/client/java/com/google/android/rappor/ |
Encoder.java | 16 import java.util.Random; 84 * <p>In practice, "memoization" is achieved by generating deterministic pseudo-random bits using 92 * <p>This it the probability of replacing a bit from the input with a uniform random bit when 188 * A SecureRandom instance, initialized with a cryptographically secure random seed. 191 // private final SecureRandom random; 192 private final Random random; field in class:Encoder 223 null, // random 239 * @param random A cryptographically secure random number generator, or null (in which case [all...] |
/external/rappor/client/javatest/com/google/android/rappor/ |
EncoderTest.java | 21 import java.util.Random; 290 // This is a stable, random cohort assignment. 710 // SecureRandom random = SecureRandom.getInstance("SHA1PRNG"); 711 Random random = new Random(); local 713 random.setSeed(0x12345678L); 719 random, 796 Random random1 = new Random(); [all...] |
/external/skia/tests/ |
ProcessorTest.cpp | 12 #include <random> 262 // This test uses the random GrFragmentProcessor test factory, which relies on static initializers. 266 DEFINE_bool(randomProcessorTest, false, "Use non-deterministic seed for random processor tests?"); 293 bool init_test_textures(GrProxyProvider* proxyProvider, SkRandom* random, 308 input_texel_color(random->nextULessThan(256), random->nextULessThan(256)); 318 // Put random values into the alpha texture that the test FPs can optionally use. 323 alphaData[kTestTextureSize * y + x] = random->nextULessThan(256); 366 SkRandom random(seed); 374 if (!init_test_textures(proxyProvider, &random, proxies)) 498 SkRandom random; local [all...] |
/external/skqp/tests/ |
ProcessorTest.cpp | 12 #include <random> 262 // This test uses the random GrFragmentProcessor test factory, which relies on static initializers. 266 DEFINE_bool(randomProcessorTest, false, "Use non-deterministic seed for random processor tests?"); 293 bool init_test_textures(GrProxyProvider* proxyProvider, SkRandom* random, 308 input_texel_color(random->nextULessThan(256), random->nextULessThan(256)); 318 // Put random values into the alpha texture that the test FPs can optionally use. 323 alphaData[kTestTextureSize * y + x] = random->nextULessThan(256); 366 SkRandom random(seed); 374 if (!init_test_textures(proxyProvider, &random, proxies)) 497 SkRandom random; local [all...] |
/external/syslinux/gpxe/src/include/gpxe/ |
tls.h | 119 /** Random data */ 120 uint8_t random[46]; member in struct:tls_pre_master_secret 123 /** TLS client random data */ 127 /** Random data */ 128 uint8_t random[28]; member in struct:tls_client_random 153 /** Server random bytes */ 155 /** Client random bytes */
|