Lines Matching +full:- +full:runs
21 #include "libqtest-single.h"
77 while (retries-- > 0) { in rng_wait_ready()
87 * Perform a frequency (monobit) test, as defined by NIST SP 800-22, on the
88 * sequence in buf and return the P-value. This represents the probability of a
104 * Each 1 counts as 1, each 0 counts as -1. in calc_monobit_p()
105 * s = cp - (8 - cp) = 2 * cp - 8 in calc_monobit_p()
107 sn += 2 * ctpop8(buf[i]) - 8; in calc_monobit_p()
116 * Perform a runs test, as defined by NIST SP 800-22, and return the P-value.
118 * number of runs (i.e. uninterrupted sequences of identical bits) as the
136 for (k = 0; k < nr_bits - 1; k++) { in calc_runs_p()
141 return erfc(fabs(vn_obs - 2 * nr_bits * pi * (1.0 - pi)) in calc_runs_p()
142 / (2 * sqrt(2 * nr_bits) * pi * (1.0 - pi))); in calc_runs_p()
204 * satisfies a runs test.
248 * a runs test.
286 qtest_add_func("npcm7xx_rng/continuous/runs", test_continuous_runs); in main()
288 qtest_add_func("npcm7xx_rng/first_byte/runs", test_first_byte_runs); in main()
291 qtest_start("-machine npcm750-evb"); in main()