Searched defs:rand (Results 1 - 25 of 268) sorted by relevance

1234567891011

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2612.js44 function rand() { function
61 source += [varname(i), "=", rand(), ","].join("");
/external/chromium_org/net/quic/crypto/
H A Dcurve25519_key_exchange_test.cc21 QuicRandom* const rand = QuicRandom::GetInstance(); local
24 const string alice_key(Curve25519KeyExchange::NewPrivateKey(rand));
25 const string bob_key(Curve25519KeyExchange::NewPrivateKey(rand));
/external/skia/bench/
H A DStackBench.cpp87 SkRandom rand; local
90 junk += s[rand.nextULessThan(K)];
98 SkRandom rand; local
101 junk += s[rand.nextULessThan(K)];
/external/chromium_org/third_party/libsrtp/srtp/crypto/include/
H A Dkernel_compat.h68 /* rand() implementation. */
71 static INLINE int rand(void) function
H A Dprng.h62 rand_source_func_t rand; /* random source for re-initialization */ member in struct:__anon12825
79 rand_source_func_t rand; /* random source for re-initialization */ member in struct:__anon12826
/external/chromium_org/third_party/skia/gm/
H A Darcofzorro.cpp36 SkRandom rand; variable
48 SkColor color = rand.nextU();
H A Ddiscard.cpp57 SkRandom rand; variable
62 SkColor color = rand.nextU() | 0xFF404040;
63 switch (rand.nextULessThan(3)) {
H A Dgetpostextpath.cpp59 SkLCGRandom rand; local
63 pos[i].set(x, y + rand.nextSScalar1() * 24);
/external/chromium_org/third_party/skia/tests/
H A DMipMapTest.cpp13 static void make_bitmap(SkBitmap* bm, SkRandom& rand) { argument
16 int w = 2 + rand.nextU() % 1000;
17 int h = 2 + rand.nextU() % 1000;
24 SkRandom rand; local
27 make_bitmap(&bm, rand);
/external/fio/lib/
H A Dzipf.h5 #include "rand.h"
13 struct frand_state rand; member in struct:zipf_state
/external/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/
H A Ddiscard.pass.cpp32 rand() function
66 rand<unsigned int>();
67 rand<unsigned long>();
68 rand<unsigned long long>();
/external/skia/gm/
H A Darcofzorro.cpp36 SkRandom rand; variable
48 SkColor color = rand.nextU();
H A Ddiscard.cpp57 SkRandom rand; variable
62 SkColor color = rand.nextU() | 0xFF404040;
63 switch (rand.nextULessThan(3)) {
/external/skia/tests/
H A DMipMapTest.cpp13 static void make_bitmap(SkBitmap* bm, SkRandom& rand) { argument
16 int w = 2 + rand.nextU() % 1000;
17 int h = 2 + rand.nextU() % 1000;
24 SkRandom rand; local
27 make_bitmap(&bm, rand);
/external/srtp/crypto/include/
H A Dkernel_compat.h68 /* rand() implementation. */
71 static inline int rand(void) function
H A Dprng.h27 rand_source_func_t rand; /* random source for re-initialization */ member in struct:__anon31205
44 rand_source_func_t rand; /* random source for re-initialization */ member in struct:__anon31206
/external/chromium_org/crypto/
H A Dp224_spake_unittest.cc84 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/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
H A Dstring-fasta.js8 function rand(max) { function
66 var r = rand(1);
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
H A Dstring-fasta.js8 function rand(max) { function
66 var r = rand(1);
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/
H A Dstring-fasta.js8 function rand(max) { function
66 var r = rand(1);
/external/chromium_org/third_party/skia/bench/
H A DColorPrivBench.cpp23 SkRandom rand; variable
25 fSrcs[i] = SkPreMultiplyColor(rand.nextU());
26 fDsts[i] = SkPreMultiplyColor(rand.nextU());
H A DFSRectBench.cpp27 SkRandom rand; variable
32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange);
33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange);
34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange);
35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange);
36 fColors[i] = rand.nextU() | 0xFF000000;
H A DLineBench.cpp34 SkRandom rand; local
36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480);
H A DMemcpyBench.cpp33 SkRandom rand; variable
35 fSrc[i] = rand.nextU();
H A DPathIterBench.cpp17 static int rand_pts(SkRandom& rand, SkPoint pts[4]) { argument
18 int n = rand.nextU() & 3;
22 pts[i].fX = rand.nextSScalar1();
23 pts[i].fY = rand.nextSScalar1();
38 SkRandom rand; local
41 int n = rand_pts(rand, pts);

Completed in 466 milliseconds

1234567891011