Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dproperty_benchmark.cpp57 name_lens[i] = (random() % (PROP_NAME_MAX - 10)) + 10; in LocalPropertyTestState()
71 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState()
76 value_lens[i] = (random() % (PROP_VALUE_MAX - 1)) + 1; in LocalPropertyTestState()
79 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
134 pa.system_properties().Get(pa.names[random() % nprops], value); in BM_property_get()
146 pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_find()
161 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
182 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_serial()
/bionic/libc/bionic/
Drand.cpp24 return random(); in rand()
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_statistic.h39 } random; member
/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/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/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.cpp138 TEST(stdlib, random) { in TEST() argument
140 EXPECT_EQ(55436735, random()); in TEST()
141 EXPECT_EQ(1399865117, random()); in TEST()
142 EXPECT_EQ(2032643283, random()); in TEST()
143 EXPECT_EQ(571329216, random()); in TEST()
145 EXPECT_EQ(55436735, random()); in TEST()
146 EXPECT_EQ(1399865117, random()); in TEST()
148 EXPECT_EQ(55436735, random()); in TEST()
149 EXPECT_EQ(1399865117, random()); in TEST()
/bionic/libc/include/android/
Dlegacy_stdlib_inlines.h76 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.md67 * `getentropy`/`getrandom` (adding <sys/random.h>)
164 …ck_exit`, `grantpt`, `mbtowc`/`wctomb`, `posix_openpt`, `rand_r`/`rand`/`random`/`srand`/`srandom`…
/bionic/libc/tools/
Dposix-2013.txt833 random
/bionic/libc/
DSYSCALLS.TXT357 # <sys/random.h>
Dlibc.map.txt851 random; # introduced=21
DAndroid.bp321 "upstream-netbsd/common/lib/libc/stdlib/random.c",
DNOTICE5901 such a mathematical system to generate more random (yet non-repeating)
/bionic/tools/versioner/platforms/
Dlibc.map.txt851 random; # introduced=21