-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[test-suite] obsequi output is different on musl platform #94048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I suspect the cause is |
I confirm replacing |
v01dXYZ
pushed a commit
to v01dXYZ/llvm-test-suite
that referenced
this issue
Jun 4, 2024
musl implements random() differently than glibc. The output of the program is thus dependent on this implementation detail and could differ between platforms. To remediate that, we replace it by a very simple PRNG (ANSI C LCG). Warning: [1] indicates this PRNG have quite a poor LSB randomness. [1]: Entacher, Karl. (1999). A Collection of Selected Pseudorandom Number Generators With Linear Structures. Fixes llvm/llvm-project#94048
v01dXYZ
pushed a commit
to v01dXYZ/llvm-test-suite
that referenced
this issue
Jun 4, 2024
musl implements random() differently than glibc. The output of the program is thus dependent on this implementation detail and could differ between platforms. To remediate that, we replace it by a very simple PRNG (ANSI C LCG). Warning: [^1] indicates this PRNG have quite a poor LSB randomness. [^1]: Entacher, Karl. (1999). A Collection of Selected Pseudorandom Number Generators With Linear Structures. Fixes llvm/llvm-project#94048
It seems that this issue is not directly related to this repo. Is this only about https://github.com/llvm/llvm-test-suite? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When compiling
obsequi
withcc *.c -o obsequi -DCOUNTBITS16 -DLASTBIT16 -DCOUNTMOVES_TABLE -DTWO_STAGE_GENERATION -DHASHCODEBITS=23 -Wno-implicit-int
To generate the output from the test input:
cat input | ./obsequi
The output is different between
debian (glibc)
(same asObsequi.reference_output
) andalpine (musl)
(both with clang 16 and 17).The text was updated successfully, but these errors were encountered: