Lines Matching full:runs

76  * runs[i] holds the number of runs of size (i-1)
82 uint16_t runs[6] = { 0, 0, 0, 0, 0, 0 }; in stat_test_runs() local
107 /* check for long runs */ in stat_test_runs()
109 debug_print(mod_stat, ">25 runs: %d", state); in stat_test_runs()
118 return err_status_algo_fail; /* long-runs test failed */ in stat_test_runs()
137 debug_print(mod_stat, ">25 runs (2): %d", state); in stat_test_runs()
138 return err_status_algo_fail; /* long-runs test failed */ in stat_test_runs()
141 state = 6; /* group together runs > 5 */ in stat_test_runs()
143 runs[state-1]++; /* increment run count */ in stat_test_runs()
169 debug_print(mod_stat, "runs test", NULL); in stat_test_runs()
171 debug_print(mod_stat, " runs[]: %d", runs[i]); in stat_test_runs()
178 if ( (runs[i] < lo_value[i] ) || (runs[i] > hi_value[i]) in stat_test_runs()
207 uint16_t runs[6] = { 0, 0, 0, 0, 0, 0 }; in stat_test_rand_source() local
214 /* counters for monobit, poker, and runs tests are initialized above */ in stat_test_rand_source()
242 /* update runs test counters */ in stat_test_rand_source()
253 /* check for long runs */ in stat_test_rand_source()
255 debug_print(mod_stat, ">25 runs (3): %d", state); in stat_test_rand_source()
264 return err_status_algo_fail; /* long-runs test failed */ in stat_test_rand_source()
283 debug_print(mod_stat, ">25 runs (4): %d", state); in stat_test_rand_source()
284 return err_status_algo_fail; /* long-runs test failed */ in stat_test_rand_source()
287 state = 6; /* group together runs > 5 */ in stat_test_rand_source()
289 runs[state-1]++; /* increment run count */ in stat_test_rand_source()
343 if ((runs[i] < lo_value[i] ) || (runs[i] > hi_value[i]) in stat_test_rand_source()