-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Obsequi: Use ANSI C LCG instead of random() for g_zobrist init
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
- Loading branch information
v01dxyz
committed
Jun 4, 2024
1 parent
b6d9197
commit 286ead4
Showing
2 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters