Searched refs:rand (Results 1 - 5 of 5) sorted by relevance

/bionic/tests/
H A Dstdlib_test.cpp48 // ...and rand(3) is the bottom 32 bits.
50 EXPECT_EQ(static_cast<int>(1409163720), rand());
51 EXPECT_EQ(static_cast<int>(397769746), rand());
52 EXPECT_EQ(static_cast<int>(902267124), rand());
53 EXPECT_EQ(static_cast<int>(132366131), rand());
H A Dstring_test.cpp513 int rand = random() & 255; local
514 if (rand < 1) {
515 rand = 1;
517 memset(state.ptr1, rand, state.MAX_LEN);
743 unsigned short c1 = rand() & mask;
744 unsigned short c2 = rand() & mask;
769 int c1 = rand() & mask;
770 int c2 = rand() & mask;
787 int rand = random() & 255; local
794 memset(state.ptr1, rand, stat
[all...]
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dmktemp.c99 uint32_t rand; local
123 rand = arc4random_uniform(sizeof(padchar) - 1);
124 *trv-- = padchar[rand];
/bionic/libstdc++/include/
H A Dcstdlib87 using ::rand;
/bionic/libc/include/
H A Dstdlib.h106 static __inline__ int rand(void) { function

Completed in 502 milliseconds