Home
last modified time | relevance | path

Searched refs:random (Results 1 – 17 of 17) sorted by relevance

/bionic/benchmarks/
Dproperty_benchmark.cpp58 name_lens[i] = (random() % (PROP_NAME_MAX - 10)) + 10; in LocalPropertyTestState()
72 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState()
77 value_lens[i] = (random() % (PROP_VALUE_MAX - 1)) + 1; in LocalPropertyTestState()
80 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
135 pa.system_properties().Get(pa.names[random() % nprops], value); in BM_property_get()
147 pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_find()
162 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
183 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_serial()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dres_random.c233 _THREAD_PRIVATE_MUTEX(random); in __res_randomid()
238 _THREAD_PRIVATE_MUTEX_LOCK(random); in __res_randomid()
251 _THREAD_PRIVATE_MUTEX_UNLOCK(random); in __res_randomid()
/bionic/tests/
Dstring_test.cpp264 state.ptr1[random() % state.len[i]] = '\0'; in TEST()
448 size_t pos = random() % state.MAX_LEN; in TEST()
482 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST()
511 size_t pos = random() % state.MAX_LEN; in TEST()
535 size_t pos = random() % state.MAX_LEN; in TEST()
565 size_t pos = random() % state.MAX_LEN; in TEST()
592 size_t pos = random() % state.MAX_LEN; in TEST()
626 state.ptr1[random() % state.len[i]] = '\0'; in TEST()
631 size_t actual = random() % state.len[i]; in TEST()
650 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST()
[all …]
Dstdlib_test.cpp141 TEST(stdlib, random) { in TEST() argument
143 EXPECT_EQ(55436735, random()); in TEST()
144 EXPECT_EQ(1399865117, random()); in TEST()
145 EXPECT_EQ(2032643283, random()); in TEST()
146 EXPECT_EQ(571329216, random()); in TEST()
148 EXPECT_EQ(55436735, random()); in TEST()
149 EXPECT_EQ(1399865117, random()); in TEST()
151 EXPECT_EQ(55436735, random()); in TEST()
152 EXPECT_EQ(1399865117, random()); in TEST()
/bionic/libc/upstream-netbsd/common/lib/libc/stdlib/
Drandom.c51 __weak_alias(random,_random)
499 random(void) in random() function
510 random(void) in random() function
/bionic/libc/bionic/
Drand.cpp24 return random(); in rand()
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_statistic.h39 } random; member
/bionic/libc/include/android/
Dlegacy_stdlib_inlines.h77 static __inline long random(void) { return lrand48(); } in random() function
/bionic/tests/headers/posix/
Dstdlib_h.c117 FUNCTION(random, long (*f)(void)); in stdlib_h()
/bionic/libc/include/
Dstdlib.h199 long random(void) __INTRODUCED_IN(21);
/bionic/docs/
Dstatus.md90 * `getentropy`/`getrandom` (adding <sys/random.h>)
187 …ck_exit`, `grantpt`, `mbtowc`/`wctomb`, `posix_openpt`, `rand_r`/`rand`/`random`/`srand`/`srandom`…
/bionic/libc/tools/
Dposix-2013.txt833 random
/bionic/libc/
DSYSCALLS.TXT358 # <sys/random.h>
Dlibc.map.txt851 random; # introduced=21
DAndroid.bp376 "upstream-netbsd/common/lib/libc/stdlib/random.c",
DNOTICE5774 such a mathematical system to generate more random (yet non-repeating)
/bionic/tools/versioner/platforms/
Dlibc.map.txt851 random; # introduced=21