path: root/btrfs-corrupt-block.c
diff options
authorQu Wenruo <>2016-05-26 10:56:50 +0800
committerDavid Sterba <>2016-06-01 16:43:25 +0200
commit17239a9c89dec5576784675edd205264535c1557 (patch)
treea4568be7e1095f342a36ff1e6c1b0b108f831d80 /btrfs-corrupt-block.c
parentee0908ee81e55d730402cd4931513579b34ea792 (diff)
btrfs-progs: utils: Introduce new pseudo random API
David has reported some quite chaos usage of pseudo random numbers. Like using static srand seed, or even calling rand() without setting seed correctly. The new pseudo random API will initialize the random seed on its first calling and use uniformly distributed pseudo random number generator as backend. Signed-off-by: Qu Wenruo <> [ renamed variables and functions, added prefixes ] Signed-off-by: David Sterba <>
Diffstat (limited to 'btrfs-corrupt-block.c')
0 files changed, 0 insertions, 0 deletions