Home
last modified time | relevance | path

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

/lk-master/external/lib/lwip/netif/ppp/
A Drandm.c244 return ((((u32_t)rand() << 16) + rand()) + avRandomSeed); in avRandom()
/lk-master/app/tests/
A Dcbuf_tests.c89 int to_write_random = rand() & 7; in cbuf_tests()
103 int to_read_random = rand() & 7; in cbuf_tests()
A Dthread_tests.c25 thread_sleep(rand() % 500); in sleep_thread()
60 iterations = rand(); in semaphore_consumer()
A Dport_tests.c317 const size_t count = 1 + ((unsigned int)rand() % 3); in two_threads_basic()
/lk-master/lib/libc/include/
A Drand.h15 int rand(void);
/lk-master/lib/libc/
A Drand.c30 int rand(void) { in rand() function
A Drules.mk17 $(LOCAL_DIR)/rand.c \
/lk-master/lib/heap/
A Dheap_wrapper.c270 unsigned int index = (unsigned int)rand() % 16; in heap_test()
281 unsigned int align = 1 << ((unsigned int)rand() % 8); in heap_test()
282 ptr[index] = HEAP_MEMALIGN(align, (unsigned int)rand() % 32768); in heap_test()
/lk-master/app/zynq-common/
A Dinit.c161 mac_addr[i] = rand() & 0xff; in zynq_common_target_init()
/lk-master/lib/bio/
A Ddebug.c355 bnum_t block_addr = rand() % device->block_count; in sub_erase_test()
424 uint8_t pattern_seed = (uint8_t)(rand() % 256); in memory_mapped_test()
/lk-master/lib/heap/cmpctmalloc/
A Dcmpctmalloc.c559 unsigned int index = (unsigned int)rand() % 16; in cmpct_test()
570 unsigned int align = 1 << ((unsigned int)rand() % 8); in cmpct_test()
571 ptr[index] = cmpct_memalign((unsigned int)rand() % 32768, align); in cmpct_test()
/lk-master/lib/norfs/test/
A Dnorfs_test.c503 int action = rand() % 6; in test_thrash_fs()
504 uint16_t key = (uint16_t)(rand() % 16); in test_thrash_fs()
/lk-master/lib/norfs/
A Dnorfs.c883 write_pointer = rand() % NORFS_NVRAM_SIZE; in norfs_mount_fs()
915 write_pointer = rand() % NORFS_NVRAM_SIZE; in norfs_unmount_fs()
/lk-master/lib/minip/
A Dminip.c75 mac_addr[i] = rand() & 0xff; in gen_random_mac_address()
A Dtcp.c926 s->tx_win_low = rand(); in create_tcp_socket()
/lk-master/lib/fs/spifs/test/
A Dspifstest.c529 wbuf[i] = rand() % sizeof(uint8_t); in test_read_write_big()

Completed in 22 milliseconds