Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dproperty_benchmark.cpp59 name_lens[i] = (random() % (PROP_NAME_MAX - 10)) + 10; in LocalPropertyTestState()
73 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState()
78 value_lens[i] = (random() % (PROP_VALUE_MAX - 1)) + 1; in LocalPropertyTestState()
81 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
139 pa.system_properties().Get(pa.names[random() % nprops], value); in BM_property_get()
151 pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_find()
166 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
187 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/libc/bionic/
Drand.cpp24 return random(); in rand()
/bionic/tests/
Dstring_test.cpp275 state.ptr1[random() % state.len[i]] = '\0'; in TEST()
460 size_t pos = random() % state.MAX_LEN; in TEST()
494 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST()
523 size_t pos = random() % state.MAX_LEN; in TEST()
547 size_t pos = random() % state.MAX_LEN; in TEST()
577 size_t pos = random() % state.MAX_LEN; in TEST()
604 size_t pos = random() % state.MAX_LEN; in TEST()
638 state.ptr1[random() % state.len[i]] = '\0'; in TEST()
643 size_t actual = random() % state.len[i]; in TEST()
662 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST()
[all …]
Dstdlib_test.cpp143 TEST(stdlib, random) { in TEST() argument
145 EXPECT_EQ(55436735, random()); in TEST()
146 EXPECT_EQ(1399865117, random()); in TEST()
147 EXPECT_EQ(2032643283, random()); in TEST()
148 EXPECT_EQ(571329216, random()); in TEST()
150 EXPECT_EQ(55436735, random()); in TEST()
151 EXPECT_EQ(1399865117, random()); in TEST()
153 EXPECT_EQ(55436735, random()); in TEST()
154 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/kernel/uapi/linux/netfilter/
Dxt_statistic.h27 } random; member
/bionic/tests/headers/posix/
Dstdlib_h.c117 FUNCTION(random, long (*f)(void)); in stdlib_h()
/bionic/libc/include/
Dstdlib.h204 long random(void);
/bionic/docs/
Dstatus.md147 * `getentropy`/`getrandom` (adding <sys/random.h>)
244 …ck_exit`, `grantpt`, `mbtowc`/`wctomb`, `posix_openpt`, `rand_r`/`rand`/`random`/`srand`/`srandom`…
/bionic/libc/tools/
Dposix-2013.txt833 random
/bionic/libc/
DSYSCALLS.TXT374 # <sys/random.h>
Dlibc.map.txt851 random; # introduced=21
DAndroid.bp425 "upstream-netbsd/common/lib/libc/stdlib/random.c",
DNOTICE4378 such a mathematical system to generate more random (yet non-repeating)
/bionic/tools/versioner/platforms/
Dlibc.map.txt851 random; # introduced=21