Closed pcriv closed 2 days ago
The reason for this is that uint8 has 256 possible values.
To test randomization, we generate 10 values and make sure the same value does not repeat. With 256 possible values, if my math is correct, there's a 16.3% chance that a duplicate will be generated.
To keep things simple, I'm going to make it 2 values, this should reduce the chance of duplicates to 0.4% and 2 values should be enough to test if duplicates are generated correctly.
This should have been fixed in v0.28.0 which was released on 2024-06-25
From time to time I get this test failure, seems to be a flaky one