HomeSort by relevance Sort by last modified time
    Searched refs:random (Results 276 - 300 of 452) sorted by null

<<111213141516171819

  /external/protobuf/gtest/src/
gtest-internal-inl.h 95 // A valid random seed must be in [1, kMaxRandomSeed].
101 // Returns a random seed in range [1, kMaxRandomSeed] based on the
116 // Returns the first valid random seed after 'seed'. The behavior is
121 << "Invalid random seed " << seed << " - must be in [1, "
242 // Vector is an ordered container that supports random access to the
417 void ShuffleRange(internal::Random* random, int begin, int end) {
429 const int selected = begin + random->Generate(range_width);
435 void Shuffle(internal::Random* random) {
1006 internal::Random* random() { return &random_; } function in class:testing::internal::UnitTestImpl
    [all...]
  /external/clang/utils/ABITest/
ABITestGen.py 4 import random, atexit, time namespace
5 from random import randrange
236 elements = map(random.choice,fieldValues)
249 elements = [random.choice(values) for i in range(t.numElements)]
354 help="autogeneration mode (random or linear) [default %default]",
355 type='choice', choices=('random','linear'), default='linear')
363 help="maximum index for random autogeneration [default %default]",
366 help="random number generator seed [default %default]",
368 parser.add_option("", "--use-random-seed", dest="useRandomSeed",
369 help="use random value for initial random number generator seed"
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
CheckSecuritySyntaxOnly.cpp 119 .Case("random", &WalkAST::checkCall_random)
450 // Check: Linear congruent random number generators should not be used
480 os1 << '\'' << *FD << "' is a poor random number generator";
485 << "' is obsolete because it implements a poor random number generator."
495 // Check: 'random' should not be used
516 BR.EmitBasicReport("'random' is not a secure random number generator",
518 "The 'random' function produces a sequence of values that "
  /external/clang/utils/
FuzzTest 9 import random namespace
320 it = itertools.imap(random.randrange,
323 it = itertools.imap(random.randrange, itertools.repeat(tg.num_tests))
  /external/icu4c/test/intltest/
dtfmtrtts.cpp 227 int random = (int)(randFraction() * 24); local
228 if (random >= 0 && random < 24 && TEST_TABLE[i]) {
  /external/mtpd/
l2tp.c 320 local_tunnel = random();
483 local_session = random();
491 add_attribute_u32(CALL_SERIAL_NUMBER, random());
pptp.c 284 local = random();
292 outgoing.ocrq.serial = random();
  /external/libpcap/lbl/
os-sunos4.h 131 long random(void);
  /external/libyuv/files/unit_test/
rotate_test.cc 756 // fill image buffers with random data
759 orig_y[i * (yw + (2 * b)) + j] = random() & 0xff;
765 orig_u[i * (uvw + (2 * b)) + j] = random() & 0xff;
766 orig_v[i * (uvw + (2 * b)) + j] = random() & 0xff;
871 // fill image buffers with random data
874 orig_y[i * (yw + (2 * b)) + j] = random() & 0xff;
880 orig_u[i * (uvw + (2 * b)) + j] = random() & 0xff;
881 orig_v[i * (uvw + (2 * b)) + j] = random() & 0xff;
980 // fill image buffers with random data
983 orig_y[i * (yw + (2 * b)) + j] = random() & 0xff
    [all...]
  /external/netcat/data/
data.c 3 an input line containing "%r" during "-g" generates a random byte
13 r: generate all random bytes
68 q = random();
97 /* if your library doesnt have srandom/random, use srand/rand. [from rnd.c] */
176 if (*p == 'r') { /* random byte */
261 /* here if generating all-random bytes. Stays in this loop */
  /external/nist-sip/java/gov/nist/javax/sip/stack/
UDPMessageProcessor.java 214 boolean decision = Math.random() > 1.0 - threshold;
  /external/oprofile/libdb/tests/
db_test.c 103 odb_key_t key = (random() % nr_unique_item) + 1;
  /external/srtp/crypto/test/
auth_driver.c 174 /* create random message */
179 msg_string[i] = (uint16_t) random();
  /external/tcpdump/lbl/
os-sunos4.h 131 long random(void);
  /external/v8/test/mjsunit/
substr.js 75 var w = Math.random() * 42; // Allocate something new in new-space.
93 var w = Math.random() * 42; // Allocate something new in new-space.
  /frameworks/base/core/java/android/net/
SntpClient.java 210 // low order bits should be random data
211 buffer[offset++] = (byte)(Math.random() * 255.0);
  /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyGeneratorTest.java 333 * <code>init(int keysize, SecureRandom random)</code> methods
348 SecureRandom random = new SecureRandom(); local
358 kgs[i].init(size[j], random);
367 * <code>init(AlgorithmParameterSpec params, SecureRandom random)</code> methods
394 * <code>init(SecureRandom random)</code> methods
395 * <code>init(int keysize, SecureRandom random)</code> methods
397 * <code>init(AlgorithmParameterSpec params, SecureRandom random)</code> methods
  /frameworks/base/media/libstagefright/codecs/amrwbenc/
Android.mk 44 src/random.c \
  /frameworks/base/tests/CoreTests/android/core/
HeapTest.java 32 import java.util.Random;
160 Random random = new Random(); local
167 int r = random.nextInt(64 * 1024) + 128;
  /libcore/luni/src/main/java/java/lang/
StrictMath.java 690 * Returns a pseudo-random number between 0.0 (inclusive) and 1.0
693 * @return a pseudo-random number.
695 public static double random() { method in class:StrictMath
696 return Math.random();
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Utils.java 34 import java.util.Random;
317 public static void shuffle(int array[], Random random) {
319 int t = random.nextInt(i);
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
SlideshowPage.java 42 import java.util.Random;
50 public static final String KEY_RANDOM_ORDER = "random-order";
182 boolean random = data.getBoolean(KEY_RANDOM_ORDER, false);
189 if (random) {
227 private final Random mRandom = new Random();
  /external/valgrind/main/none/tests/amd64/
amd64locked.c 667 bitoff = (random() % 1600) - 800;
668 op = random() % 4;
703 bitoff = (random() % 1600) - 800;
704 op = random() % 4;
739 bitoff = (random() % 1600) - 800;
740 op = random() % 4;
  /development/samples/LunarLander/src/com/example/android/lunarlander/
LunarView.java 294 // start with a little random motion
295 mDY = Math.random() * -speedInit;
296 mDX = Math.random() * 2 * speedInit - speedInit;
301 mGoalX = (int) (Math.random() * (mCanvasWidth - mGoalWidth));
    [all...]
  /external/chromium/net/tools/testserver/
chromiumsync.py 15 import random namespace
281 self.store_birthday = '%0.30f' % random.random()
352 # a random ID), but it's useful for debugging.
    [all...]

Completed in 1529 milliseconds

<<111213141516171819