rust-rse / reed-solomon-erasure

[Looking for new owners/maintainers, see #88] Rust implementation of Reed-Solomon erasure coding
MIT License
179 stars 61 forks source link

Upgrade fill_random in test #68

Open darrenldl opened 4 years ago

darrenldl commented 4 years ago

Very occasionally (e.g. Travis CI job #351.1) tests fail very randomly that doesn't make any sense.

My suspicion is since fill_random doesn't check if the new random value is indeed different from original value, tests which assume fill_random will always corrupt data may fail very rarely (1/256 chance) as a result.