Home
last modified time | relevance | path

Searched refs:RAND_MAX (Results 1 – 21 of 21) sorted by relevance

/external/chromium/sdch/open-vcdiff/src/
Dtesting.h165 double rand_limit = RAND_MAX; // The maximum possible value in PortableRandomInRange()
169 value = (value * (static_cast<uint64_t>(RAND_MAX) + 1)) + rand(); in PortableRandomInRange()
170 rand_limit = (rand_limit * (RAND_MAX + 1.0)) + RAND_MAX; in PortableRandomInRange()
/external/srtp/crypto/include/
Dkernel_compat.h69 #define RAND_MAX 32767 macro
75 return temp % (RAND_MAX+1); in rand()
/external/webkit/Source/JavaScriptCore/wtf/
DRandomNumber.cpp86 uint32_t part1 = rand() & (RAND_MAX - 1); in randomNumber()
87 uint32_t part2 = rand() & (RAND_MAX - 1); in randomNumber()
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Drandgen.h49 double r = rand()/(RAND_MAX + 1.0); in operator()
79 double r = rand()/(RAND_MAX + 1.0); in operator()
/external/webrtc/src/system_wrappers/test/TestSort/
DTestSort.cpp108 double floatRand = static_cast<double>(rand()) / RAND_MAX; in TypedRand()
122 return static_cast<Type>((static_cast<Type>(rand()) / RAND_MAX) - 0.5); in TypedRand()
/external/srtp/crypto/replay/
Dut_sim.c53 return rand() > (RAND_MAX/2) ? -1 : 1; in ut_compar()
/external/chromium/net/disk_cache/
Ddisk_cache_perftest.cc245 int entry = rand() * (kNumEntries / RAND_MAX + 1); in TEST_F()
/external/stlport/test/unit/
Dcmath_test.cpp75 CPPUNIT_CHECK( rand_val >= 0 && rand_val <= RAND_MAX ); in import_checks()
/external/dbus/test/
Dbreak-loader.c62 v_double = ((double)start) + (((double)rand ())/RAND_MAX) * gap; in random_int_in_range()
/external/dbus/dbus/
Ddbus-sysdeps.c818 b = (r / (double) RAND_MAX) * 255.0; in _dbus_generate_pseudorandom_bytes_buffer()
/external/skia/gpu/src/
DGrMatrix.cpp330 GrScalar x = (float)rand() / RAND_MAX;
/external/icu4c/test/cintltst/
Dcapitst.c1571 lowerRND = (rand()/(RAND_MAX/arraySize)); in TestBounds()
1572 upperRND = lowerRND + (rand()/(RAND_MAX/(arraySize-lowerRND))); in TestBounds()
Dcnormtst.c666 data[size] = datachar[(rand() * 50) / RAND_MAX]; in TestCheckFCD()
/external/icu4c/test/intltest/
Dwbnf.cpp484 double reference_mark = (double)rand() / (double)RAND_MAX; in next()
/external/opencv/cvaux/src/
Dcvlmeds.cpp176 indexes[i] = (int) ((double) rand() / RAND_MAX * num); in icvChoose7()
Dcvlee.cpp1674 const float rnd_const = shift/RAND_MAX; in _cvRandomModification()
/external/qemu/
Dvnc.c1877 vs->challenge[i] = (int) (256.0*rand()/(RAND_MAX+1.0)); in make_challenge()
Dvnc-android.c1883 vs->challenge[i] = (int) (256.0*rand()/(RAND_MAX+1.0)); in make_challenge()
/external/skia/src/core/
DSkMatrix.cpp1681 SkScalar x = (float)rand() / RAND_MAX; in getMaxStretch()
/external/webkit/Source/JavaScriptCore/
DChangeLog-2007-10-14419 … Math.random was skewed slightly upward because it assumed that RAND_MAX was outside the range of
424 … Fixed by accounting for RAND_MAX return values. Also, switched Windows over to rand_s, which has
DChangeLog-2008-08-1027402 * wtf/MathExtras.h: Include stdlib.h for srand and RAND_MAX.