You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered that std::shuffle's implementation is not defined by the standard so its behavior might differ per libc implementation.
Note that the implementation is not dictated by the standard, so even if you use exactly the same RandomFunc or URBG (Uniform Random Number Generator) you may get different results with different standard library implementations.
I am definitely observing different behaviors w/ the same seeds on Windows / Ubuntu. MutationDispatcher::Mutate_ShuffleBytes from libfuzzer uses it which leads to the generation of different testcases even w/ the same seeds, ugh:
The sequence of number it'll generate w/ the same seeded generator can differ per libc implementation; the latest Windows/msvc, Linux/gcc versions print the same one, but the latest Linux/clang version doesn't.
On top of the above, the number of times it gets a number off the generator is different across at least Windows & Linux; this basically also desynchronize testcase generation across platform (example)
I just discovered that std::shuffle's implementation is not defined by the standard so its behavior might differ per libc implementation.
I am definitely observing different behaviors w/ the same seeds on Windows / Ubuntu. MutationDispatcher::Mutate_ShuffleBytes from libfuzzer uses it which leads to the generation of different testcases even w/ the same seeds, ugh:
The text was updated successfully, but these errors were encountered: