ligurio / unreliablefs

A FUSE-based fault injection filesystem.
https://ligurio.github.io/unreliablefs/unreliablefs.1.html
MIT License
177 stars 9 forks source link

Better randomization #4

Closed ligurio closed 2 years ago

ligurio commented 3 years ago

See https://github.com/ligurio/unreliablefs/blob/master/unreliablefs_errinj.c#L9-L12

issue about setting random seed in #1

ligurio commented 2 years ago

Now formula number = (rand() % (upper - lower + 1)) + lower is used and it is more than enough for current needs.