Lines Matching full:chance
2473 static inline int chance(unsigned int n, unsigned int out_of) in chance() function
2487 if (chance(1, 2)) { in power_cut_emulated()
2490 if (chance(1, 2)) { in power_cut_emulated()
2516 if (write && chance(1, 2)) in power_cut_emulated()
2518 if (chance(19, 20)) in power_cut_emulated()
2522 if (chance(19, 20)) in power_cut_emulated()
2526 if (write && chance(99, 100)) in power_cut_emulated()
2528 if (chance(399, 400)) in power_cut_emulated()
2532 if (write && chance(7, 8)) in power_cut_emulated()
2534 if (chance(19, 20)) in power_cut_emulated()
2538 if (write && chance(1, 2)) in power_cut_emulated()
2540 if (chance(9, 10)) in power_cut_emulated()
2544 if (chance(99, 100)) in power_cut_emulated()
2548 if (chance(9, 10)) in power_cut_emulated()
2553 if (chance(19, 20)) in power_cut_emulated()
2558 if (chance(999, 1000)) in power_cut_emulated()
2562 if (chance(9999, 10000)) in power_cut_emulated()
2576 unsigned int from, to, ffs = chance(1, 2); in corrupt_data()