HomeSort by relevance Sort by last modified time
    Searched refs:rand (Results 76 - 100 of 987) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/srtp/crypto/rng/
ctr_prng.c 61 ctr_prng.rand = random_source;
86 status = ctr_prng_init(ctr_prng.rand);
  /external/chromium_org/net/quic/crypto/
crypto_secret_boxer.h 29 // Box encrypts |plaintext| using a random nonce generated from |rand| and
32 std::string Box(QuicRandom* rand, base::StringPiece plaintext) const;
crypto_server_config.h 82 QuicRandom* rand,
98 QuicRandom* rand,
125 // rand: an entropy source
136 QuicRandom* rand,
269 QuicRandom* rand,
280 QuicRandom* rand,
291 std::string NewServerNonce(QuicRandom* rand, QuicWallTime now) const;
  /external/skia/tests/
DrawBitmapRectTest.cpp 15 static void rand_matrix(SkMatrix* mat, SkMWCRandom& rand, unsigned mask) {
18 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1());
21 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1());
24 mat->postRotate(rand.nextSScalar1() * 360);
27 mat->setPerspX(rand.nextSScalar1());
28 mat->setPerspY(rand.nextSScalar1());
32 static void rand_size(SkISize* size, SkMWCRandom& rand) {
33 size->set(rand.nextU() & 0xFFFF, rand.nextU() & 0xFFFF)
46 SkMWCRandom rand; local
    [all...]
Sk64Test.cpp 78 SkMWCRandom rand; local
83 int aa = rand.nextS() >> 1;
84 int bb = rand.nextS() >> 1;
101 rand.next64(&a); //a.fHi >>= 1; // avoid overflow
102 rand.next64(&b); //b.fHi >>= 1; // avoid overflow
134 int bits = rand.nextU() & 63;
157 int32_t denom = rand.nextS();
160 denom = rand.nextS();
161 wide.setMul(rand.nextS(), rand.nextS())
    [all...]
InfRectTest.cpp 38 SkMWCRandom rand; local
42 r.set(rand.nextS() >> 2, rand.nextS() >> 2,
43 rand.nextS() >> 2, rand.nextS() >> 2);
  /external/chromium_org/third_party/sqlite/src/test/
crashtest1.c 55 rand(), rand(), zBig);
91 usleep(rand()%10000 + 1000);
  /external/chromium_org/third_party/tcmalloc/chromium/src/base/
spinlock_internal.cc 83 static base::subtle::Atomic64 rand; local
84 uint64 r = base::subtle::NoBarrier_Load(&rand);
86 base::subtle::NoBarrier_Store(&rand, r);
  /external/chromium_org/third_party/tcmalloc/vendor/src/base/
spinlock_internal.cc 83 static base::subtle::Atomic64 rand; local
84 uint64 r = base::subtle::NoBarrier_Load(&rand);
86 base::subtle::NoBarrier_Store(&rand, r);
  /external/skia/bench/
LineBench.cpp 35 SkRandom rand; local
37 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480);
MatrixConvolutionBench.cpp 42 SkRandom rand; local
44 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400,
45 rand.nextUScalar1() * 400);
ShaderMaskBench.cpp 62 SkRandom rand; local
76 SkScalar x = x0 + rand.nextUScalar1() * dim.fX;
77 SkScalar y = y0 + rand.nextUScalar1() * dim.fY;
83 SkScalar x = x0 + rand.nextUScalar1() * dim.fX;
84 SkScalar y = y0 + rand.nextUScalar1() * dim.fY;
ScalarBench.cpp 59 SkRandom rand; local
61 array[i] = rand.nextSScalar1();
105 SkRandom rand; local
107 fArray[i] = rand.nextSScalar1();
144 SkRandom rand; local
146 fPts[i].fX = rand.nextSScalar1();
147 fPts[i].fY = rand.nextSScalar1();
  /external/chromium_org/crypto/
p224_spake_unittest.cc 84 const uint32 rand = i * 16777619; local
91 if ((rand & 1) == round) {
92 const bool server_or_client = rand & 2;
94 if (rand & 4) {
100 const size_t bit_to_corrupt = (rand >> 3) % bits;
  /external/skia/gm/
ovals.cpp 128 SkColor genColor(SkMWCRandom* rand) {
130 hsv[0] = SkFloatToScalar(rand->nextRangeF(0.0f, 360.0f));
131 hsv[1] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
132 hsv[2] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
138 SkMWCRandom rand(1);
166 SkColor color = genColor(&rand);
188 SkColor color = genColor(&rand);
205 SkColor color = genColor(&rand);
221 SkColor color = genColor(&rand);
237 SkColor color = genColor(&rand);
    [all...]
roundrects.cpp 129 SkColor genColor(SkMWCRandom* rand) {
131 hsv[0] = SkFloatToScalar(rand->nextRangeF(0.0f, 360.0f));
132 hsv[1] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
133 hsv[2] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
139 SkMWCRandom rand(1);
169 SkColor color = genColor(&rand);
194 SkColor color = genColor(&rand);
214 SkColor color = genColor(&rand);
233 SkColor color = genColor(&rand);
252 SkColor color = genColor(&rand);
    [all...]
  /external/chromium/net/disk_cache/
stress_cache.cc 137 int slot = rand() % kNumEntries;
138 int key = rand() % kNumKeys;
139 bool truncate = rand() % 2 ? false : true;
140 int size = kSize - (rand() % 4) * kSize / 4;
157 if (rand() % 100 > 80) {
158 key = rand() % kNumKeys;
184 if (rand() % 100 > 1) {
  /external/chromium/base/synchronization/
lock_unittest.cc 28 PlatformThread::Sleep(rand() % 20);
34 PlatformThread::Sleep(rand() % 20);
65 PlatformThread::Sleep(rand() % 20);
71 PlatformThread::Sleep(rand() % 20);
78 PlatformThread::Sleep(rand() % 20);
157 PlatformThread::Sleep(rand() % 10);
  /external/chromium_org/base/synchronization/
lock_unittest.cc 30 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
36 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
67 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
73 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
80 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
159 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10));
  /external/chromium_org/third_party/skia/include/utils/
SkRandom.h 19 linear equation. Unlike rand(), this class holds its own seed (initially
157 multiply-with-carry "mother of all" algorithm. Unlike rand(), this class holds
166 SkMWCRandom(const SkMWCRandom& rand) : fK(rand.fK), fJ(rand.fJ) {}
168 SkMWCRandom& operator=(const SkMWCRandom& rand) {
169 fK = rand.fK;
170 fJ = rand.fJ;
  /external/chromium_org/v8/test/mjsunit/
unicodelctest-no-optimization.js 59 function rand() { function
75 var c = rand();
78 if (rand() & 1) {
82 if (rand() & 31 == 0) c = 0xfff8 + (rand() & 7)
83 if (rand() & 31 == 0) c = (rand() & 7)
86 if (rand() & 1) c = last + (rand() & 15) - 8;
96 var len = rand() & 0x1f
    [all...]
unicodelctest.js 58 function rand() { function
74 var c = rand();
77 if (rand() & 1) {
81 if (rand() & 31 == 0) c = 0xfff8 + (rand() & 7)
82 if (rand() & 31 == 0) c = (rand() & 7)
85 if (rand() & 1) c = last + (rand() & 15) - 8;
94 var len = rand() & 0x1f
    [all...]
  /external/sfntly/cpp/src/test/
lock_test.cc 40 PlatformThread::Sleep(rand() % 20);
46 PlatformThread::Sleep(rand() % 20);
77 PlatformThread::Sleep(rand() % 20);
83 PlatformThread::Sleep(rand() % 20);
90 PlatformThread::Sleep(rand() % 20);
172 PlatformThread::Sleep(rand() % 10);
  /external/skia/include/utils/
SkRandom.h 19 linear equation. Unlike rand(), this class holds its own seed (initially
157 multiply-with-carry "mother of all" algorithm. Unlike rand(), this class holds
166 SkMWCRandom(const SkMWCRandom& rand) : fK(rand.fK), fJ(rand.fJ) {}
168 SkMWCRandom& operator=(const SkMWCRandom& rand) {
169 fK = rand.fK;
170 fJ = rand.fJ;
  /external/chromium_org/third_party/skia/src/effects/
SkDiscretePathEffect.cpp 34 SkRandom rand(seed ^ ((seed << 16) | (seed >> 16)));
55 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale));
61 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale));

Completed in 1778 milliseconds

1 2 34 5 6 7 8 91011>>