Home
last modified time | relevance | path

Searched refs:srand (Results 1 - 25 of 154) sorted by relevance

1234567

/third_party/musl/libc-test/src/functionalext/supplement/prng/
H A Dsrand.c22 * @tc.desc : Test the srand function to set the random number seed
29 srand(10); in srand_0100()
33 srand(10); in srand_0100()
39 t_error("%s srand rand in %d is %d , %d \n", __func__, i, a[i], b[i]); in srand_0100()
53 srand(10); in srand_0200()
55 srand(500); in srand_0200()
58 t_error("%s srand get rand is %d , %d \n", __func__, a, b); in srand_0200()
H A Drand.c30 srand((unsigned int)time(0)); in rand_0100()
/third_party/skia/tools/fiddle/
H A Dfiddle_main.cpp257 srand(0); in main()
278 srand(0); in main()
290 srand(0); in main()
301 srand(0); in main()
/third_party/ltp/testcases/kernel/fs/mongo/
H A Dreiser_fract_tree.c257 srand(1); in determine_nr_of_files()
265 srand(1); in determine_nr_of_files()
451 srand(1); in make_fractal_tree()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
H A DMetaRenamer.cpp50 void srand(unsigned int seed) { in srand() function
62 prng.srand(seed); in Renamer()
/third_party/icu/icu4c/source/test/intltest/
H A Dwinnmtst.cpp71 srand((unsigned)time(NULL)); in randomInt64()
91 srand((unsigned)time(NULL)); in randomDouble()
125 srand((unsigned)time(NULL)); in randomInt32()
/third_party/ltp/testcases/kernel/mem/mmapstress/
H A Dmmapstress09.c87 extern void srand(unsigned);
474 * Use srand/rand to diffuse the information from the in initrand()
479 srand((unsigned int)getpid()); in initrand()
481 srand((unsigned int)time(NULL)); in initrand()
/third_party/musl/porting/liteos_m/kernel/src/prng/
H A Drand.c4 void srand(unsigned s) in srand() function
/third_party/musl/porting/uniproton/kernel/src/prng/
H A Drand.c4 void srand(unsigned s) in srand() function
/third_party/musl/src/prng/
H A Drand.c6 void srand(unsigned s) in srand() function
/third_party/jerryscript/jerry-main/
H A Dlibfuzzer.c22 srand (0); in LLVMFuzzerTestOneInput()
/third_party/musl/libc-test/src/functionalext/supplement/prng/prng_gtest/
H A Dprng_rand_test.cpp14 * setting the seed value to 0x01020304 using the srand function meets the expected value.
19 srand(0x010203); in HWTEST_F()
/third_party/jerryscript/tests/unit-core/
H A Dtest-common.h53 srand (now.u); \
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/
H A Dsemctl06.c171 srand(getpid()); in dotest()
261 srand(getpid()); in dosemas()
/third_party/libdrm/tests/exynos/
H A Dexynos_fimg2d_perf.c55 srand(time(NULL)); in fimg2d_perf_simple()
141 srand(time(NULL)); in fimg2d_perf_multi()
/third_party/cups-filters/
H A Dconfig.h92 # define CUPS_SRAND(v) srand(v)
/third_party/ltp/tools/sparse/sparse-src/
H A Dtest-sort.c23 srand (N); in main()
/third_party/eudev/src/shared/
H A Drandom-util.c107 srand(x); in initialize_srand()
/third_party/glfw/tests/
H A Dtimeout.c60 srand((unsigned int) time(NULL)); in main()
/third_party/cups/
H A Dconfig.h92 # define CUPS_SRAND(v) srand(v)
/third_party/jerryscript/targets/esp8266/user/
H A Djerry_run.c30 srand (now.u); in js_entry()
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-launcher/source/
H A Dlauncher.cpp72 srand (now.u); in jsmbed_js_init()
/third_party/jerryscript/targets/riot-stm32f4/source/
H A Dmain-riotos.c102 srand (now.u); in main()
/third_party/ninja/src/
H A Dhash_collision_bench.cc43 srand((int)time(NULL)); in main()
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/
H A Dsemop04.c76 tst_res(TINFO, "srand seed is %d", SEED); in run()
77 srand(SEED); in run()

Completed in 10 milliseconds

1234567