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

12

/fuchsia/zircon/kernel/lib/libc/include/
H A Drand.h17 int rand(void);
H A Dstdlib.h15 #include <rand.h>
/fuchsia/zircon/kernel/lib/libc/
H A Drand.c8 #include <rand.h>
19 int rand(void) { function
H A Drules.mk22 $(LOCAL_DIR)/rand.c \
/fuchsia/zircon/third_party/ulib/musl/src/prng/
H A Drand.c10 int rand(void) { function
/fuchsia/zircon/third_party/ulib/uboringssl/crypto/rand_extra/
H A Dfuchsia.c15 #include <openssl/rand.h>
24 #include "../fipsmodule/rand/internal.h"
H A Dforkunsafe.c15 #include <openssl/rand.h>
19 #include "../fipsmodule/rand/internal.h"
/fuchsia/zircon/kernel/tests/
H A Duart_tests.cpp19 #include <rand.h>
62 i = (rand() % (MAX_SINGLE_LINE_LEN - MIN_SINGLE_LINE_LEN));
67 if ((rand() % 2) == 0)
68 *s++ = (char)((int)'a' + (int)(rand() % 26));
70 *s++ = (char)((int)'A' + (int)(rand() % 26));
H A Dclock_tests.cpp17 #include <rand.h>
H A Dfibo.cpp14 #include <rand.h>
H A Dthread_tests.cpp22 #include <rand.h>
28 uint r = rand();
37 thread_sleep_relative(ZX_MSEC(rand() % 500));
67 if ((rand() % 5) == 0)
75 if ((rand() % 5) == 0)
145 event_wait_deadline(&args->test_blocker, current_time() + ZX_USEC(rand() % 10u), true);
714 int which = rand() % static_cast<int>(fbl::count_of(state->threads));
715 switch (rand() % 5) {
718 thread_set_cpu_affinity(state->threads[which], (cpu_mask_t)rand());
722 thread_sleep_relative(ZX_USEC(rand()
[all...]
H A Dtimer_tests.cpp23 #include <rand.h>
220 return (zx_duration_mul_int64(max, rand())) / RAND_MAX;
/fuchsia/zircon/system/uapp/kstress/
H A Dvmstress.cpp81 *out_offset = rand() % vmo_size;
82 *out_size = fbl::min(rand() % vmo_size, vmo_size - *out_offset);
85 *out_size = rand() % buf_size;
86 *out_offset = rand() % (vmo_size - *out_size);
94 int r = rand() % 100;
/fuchsia/zircon/third_party/ulib/uboringssl/
H A Drules.mk36 $(CRYPTO_DIR)/fipsmodule/rand/ctrdrbg.c \
37 $(CRYPTO_DIR)/fipsmodule/rand/rand.c \
/fuchsia/zircon/system/utest/fvm-host/
H A Dmain.cpp132 unsigned index = rand() % remaining;
237 filename[i] = 'a' + rand() % 26;
258 data[n] = static_cast<uint8_t>(rand());
289 const char* base_dir = paths[rand() % paths.size()].data();
297 const char* base_dir = paths[rand() % paths.size()].data();
298 size_t size = 1 + (rand() % max_size);
328 size_t size = 1 + (rand() % max_size);
/fuchsia/zircon/system/ulib/tftp/
H A Dtftp-file-test.cpp53 src_as_ints[ndx] = rand();
54 dst_as_ints[ndx] = rand();
59 src_file[ndx] = static_cast<uint8_t>(rand());
60 dst_file[ndx] = static_cast<uint8_t>(rand());
/fuchsia/zircon/system/utest/digest/
H A Dmerkle-tree.cpp637 gData[i] = static_cast<uint8_t>(rand());
644 uint64_t n = (rand() % 16) + 1;
645 switch (rand() % 4) {
650 uint8_t tmp = static_cast<uint8_t>(rand()) % 8;
651 buffer[rand() % Digest::kLength] ^=
662 uint8_t tmp = static_cast<uint8_t>(rand()) % 8;
663 gData[rand() % data_len] ^= static_cast<uint8_t>(1 << tmp);
672 uint8_t tmp = static_cast<uint8_t>(rand()) % 8;
673 gTree[rand() % tree_len] ^= static_cast<uint8_t>(1 << tmp);
/fuchsia/zircon/system/utest/fs/
H A Dtest-rw.cpp59 expected[i] = static_cast<uint8_t>(rand());
H A Dtest-link.c45 buf[i] = (uint8_t) rand();
244 buf[i] = (uint8_t) rand();
/fuchsia/zircon/third_party/ulib/musl/include/
H A Dstdlib.h29 int rand(void);
/fuchsia/zircon/system/utest/zxcrypt/
H A Dtest-device.cpp257 int bit = rand() % 8;
276 to_write_[i] = static_cast<uint8_t>(rand());
H A Dvolume.cpp106 off = (i * kBlockSize) + (rand() % kBlockSize);
/fuchsia/zircon/system/host/fvm/include/fvm/
H A Dformat.h114 guid_[i] = static_cast<uint8_t>(rand());
/fuchsia/zircon/third_party/ulib/uboringssl/crypto/fipsmodule/rand/
H A Drand.c15 #include <openssl/rand.h>
H A Dctrdrbg.c15 #include <openssl/rand.h>

Completed in 222 milliseconds

12