Home
last modified time | relevance | path

Searched refs:uniform_random (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/libfido2/fuzz/
H A Dpcsc.c41 if (uniform_random(400) < 1) in __wrap_SCardEstablishContext()
43 if (uniform_random(400) < 1) in __wrap_SCardEstablishContext()
45 if (uniform_random(400) < 1) in __wrap_SCardEstablishContext()
47 if (uniform_random(400) < 1) in __wrap_SCardEstablishContext()
62 if (reader_list == NULL || uniform_random(400) < 1) in __wrap_SCardListReaders()
64 if (uniform_random(400) < 1) in __wrap_SCardListReaders()
95 if ((r = uniform_random(400)) < 1) in __wrap_SCardConnect()
101 if (uniform_random(400) < 1) in __wrap_SCardConnect()
131 if (uniform_random(400) < 1 || in __wrap_SCardTransmit()
H A Dudev.c97 if (uniform_random(400) < 1) in __wrap_udev_device_get_sysattr_value()
111 return uniform_random(400) < 1 ? NULL : "name"; /* XXX randomise? */ in __wrap_udev_list_entry_get_name()
132 return uniform_random(400) < 1 ? NULL : "/dev/zero"; in __wrap_udev_device_get_devnode()
139 return uniform_random(400) < 1 ? NULL : "101010"; /* XXX randomise? */ in __wrap_udev_device_get_sysnum()
184 return uniform_random(400) < 1 ? -EINVAL : 0; in __wrap_udev_enumerate_add_match_subsystem()
191 return uniform_random(400) < 1 ? -EINVAL : 0; in __wrap_udev_enumerate_scan_devices()
210 return uniform_random(400) < 1 ? NULL : udev_list_entry; in __wrap_udev_list_entry_get_next()
238 if (uniform_random(400) < 1) { in __wrap_ioctl()
H A Dclock.c34 if (uniform_random(800) < 1) { in tick()
40 drift = usec * 1000LL + (long long)uniform_random(10000000); /* 10ms */ in tick()
56 if (uniform_random(400) < 1) in __wrap_clock_gettime()
68 if (uniform_random(400) < 1) in __wrap_usleep()
H A Duniform_random.c20 uint32_t uniform_random(uint32_t);
34 uniform_random(uint32_t upper_bound) in uniform_random() function
H A Dwrap.c40 if (prng_up && uniform_random(400) < (prob)) { \
670 if (prng_up && uniform_random(400) < 1) { in __wrap_deflate()
674 if (prng_up && uniform_random(400) < 1) { in __wrap_deflate()
690 if (prng_up && uniform_random(400) < 1) { in __wrap_asprintf()
H A Dmutator_aux.c169 if (prng_up && uniform_random(400) < 1) { in buf_read()
192 if (prng_up && uniform_random(400) < 1) { in buf_write()
H A Dmutator_aux.h105 uint32_t uniform_random(uint32_t);
H A Dfuzz_pcsc.c166 ndevs = uniform_random(64); in test_manifest()
241 test_tx(p->path, NULL, CTAP_CMD_INIT, buf, uniform_random(20)); in test()
H A Dsummary.txt7 fuzz/uniform_random.c 7 1 85.71% 1 0 100.00% 12 1 91.67%
H A Dexport.gnu282 uniform_random;
H A Dfuzz_hid.c190 ndevs = uniform_random(64); in manifest()
H A Dfuzz_mgmt.c477 n = uniform_random(MAXRPID); in dev_set_pin_minlen_rpid()
/freebsd/contrib/libfido2/src/
H A Ddev.c21 uniform_random(CTAP_MAX_REPORT_LEN - CTAP_MIN_REPORT_LEN + 1); in set_random_report_len()
23 uniform_random(CTAP_MAX_REPORT_LEN - CTAP_MIN_REPORT_LEN + 1); in set_random_report_len()
H A DCMakeLists.txt50 list(APPEND FIDO_SOURCES ../fuzz/uniform_random.c)
H A Dextern.h248 uint32_t uniform_random(uint32_t);