/third_party/gstreamer/gstreamer/tests/benchmarks/ |
D | gstpollstress.c | 47 random = (gint) (10.0 * rand () / (RAND_MAX + 1.0)); in mess_some_more() 60 if ((gint) (10.0 * rand () / (RAND_MAX + 1.0)) < 2) { in mess_some_more() 99 random = removed + (gint) (2.0 * rand () / (RAND_MAX + 1.0)); in mess_some_more()
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmpv4_sender.c | 442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes() 450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes() 458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes() 466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes() 478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes() 498 rand() / ((RAND_MAX + 1U) / 0x100); in thrust_fakes()
|
D | ns-common.c | 207 last = RAND_MAX < (unsigned int)last ? RAND_MAX : last; in rand_within() 210 rand_val = rand() / ((RAND_MAX + 1U) / num) + first; in rand_within() 232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed()
|
D | ns-icmpv6_sender.c | 658 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes() 678 rand() / ((RAND_MAX + 1U) / 0x100); in thrust_fakes() 695 rand_val = rand() / ((RAND_MAX + 1U) / 4); in thrust_fakes()
|
/third_party/skia/third_party/externals/freetype/src/psaux/ |
D | psread.c | 59 return (double)rand() / RAND_MAX < .00; in randomError2() 66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/gpu_shader5/ |
D | esextcGPUShader5FmaPrecision.cpp | 419 a = static_cast<float>(randomFormula(RAND_MAX)) / in generateData() 420 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData() 422 b = static_cast<float>(randomFormula(RAND_MAX)) / in generateData() 423 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData() 425 c = static_cast<float>(randomFormula(RAND_MAX)) / in generateData() 426 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData()
|
/third_party/glfw/examples/ |
D | heightmap.c | 294 *center_x = (MAP_SIZE * rand()) / (1.0f * RAND_MAX); in generate_heightmap__circle() 295 *center_y = (MAP_SIZE * rand()) / (1.0f * RAND_MAX); in generate_heightmap__circle() 296 *size = (MAX_CIRCLE_SIZE * rand()) / (1.0f * RAND_MAX); in generate_heightmap__circle() 297 sign = (1.0f * rand()) / (1.0f * RAND_MAX); in generate_heightmap__circle() 299 *displacement = (sign * (MAX_DISPLACEMENT * rand())) / (1.0f * RAND_MAX); in generate_heightmap__circle()
|
D | boing.c | 109 #ifndef RAND_MAX 110 #define RAND_MAX 4095 macro 395 ball_x_inc = -0.5f - 0.75f * (GLfloat)rand() / (GLfloat)RAND_MAX; in BounceBall() 400 ball_x_inc = 0.5f + 0.75f * (GLfloat)rand() / (GLfloat)RAND_MAX; in BounceBall() 407 ball_y_inc = -0.75f - 1.f * (GLfloat)rand() / (GLfloat)RAND_MAX; in BounceBall() 411 ball_y_inc = 0.75f + 1.f * (GLfloat)rand() / (GLfloat)RAND_MAX; in BounceBall()
|
/third_party/libcoap/src/ |
D | coap_prng.c | 72 #define RAND_BYTES (RAND_MAX >= 0xffffff ? 3 : (RAND_MAX >= 0xffff ? 2 : 1)) in coap_prng_default()
|
/third_party/node/lib/internal/crypto/ |
D | random.js | 198 const RAND_MAX = 0xFFFF_FFFF_FFFF; constant 241 if (!(range <= RAND_MAX)) { 243 `<= ${RAND_MAX}`, range); 249 const randLimit = RAND_MAX - (RAND_MAX % range);
|
/third_party/skia/tests/ |
D | PathOpsCubicIntersectionTest.cpp | 479 cubic1.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 480 cubic1.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 481 cubic2.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 482 cubic2.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/utils/ |
D | WhiteNoise.h | 27 r_1 = (static_cast <float> (rand()) / static_cast <float> (RAND_MAX)) * 2 - 1; in operator()
|
/third_party/gstreamer/gstplugins_good/gst/goom/ |
D | goom_tools.c | 43 #if RAND_MAX < 0x10000 in goom_random_update_array()
|
/third_party/glfw/tests/ |
D | timeout.c | 51 return (float) rand() / (float) RAND_MAX; in nrand()
|
D | empty.c | 70 return (float) rand() / (float) RAND_MAX; in nrand()
|
/third_party/ninja/src/ |
D | hash_collision_bench.cc | 25 return int(low + (rand() / double(RAND_MAX)) * (high - low) + 0.5); in random()
|
/third_party/libsnd/tests/ |
D | generate.c | 54 { return rand () / (0.5f * (float) RAND_MAX) - 1.0f ; in rand_float()
|
/third_party/pulseaudio/src/tests/ |
D | rtstutter.c | 82 … (uint64_t) ((((double) rand())*(double)(msec_upper-msec_lower)*PA_USEC_PER_MSEC)/RAND_MAX) + in work()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_main.c | 196 value = (double)rand()/(double)RAND_MAX; in random_elem() 248 return (float)((double)rand()/(double)RAND_MAX); in random_float()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-math.c | 325 const ecma_number_t rand_max = (ecma_number_t) RAND_MAX; in ecma_builtin_math_object_random() 326 const ecma_number_t rand_max_min_1 = (ecma_number_t) (RAND_MAX - 1); in ecma_builtin_math_object_random()
|
/third_party/ltp/testcases/kernel/ipc/semaphore/ |
D | sem01.c | 80 delay = 1 + ((100.0 * rand()) / RAND_MAX); in delayloop()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 23-1.c | 70 msec = (int)(20.0 * rand() / RAND_MAX); in child_func()
|
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/ |
D | test_https_get_parallel.c | 62 usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX)); in https_transfer_thread_adapter()
|
D | test_https_get_parallel_threads.c | 63 usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX)); in https_transfer_thread_adapter()
|
/third_party/ltp/testcases/kernel/mem/mem/ |
D | mem02.c | 210 size = (int)((rand() / (float)RAND_MAX) * 100000) + 1; in main()
|