Skip to content

Use getentropy in splitmix_init on unix-like platforms - #95

Merged
phadej merged 1 commit into
masterfrom
getentropy
Jun 9, 2025
Merged

phadej merged 1 commit into
masterfrom
getentropy

Conversation

@phadej

@phadej phadej commented Jun 8, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@phadej
phadej force-pushed the getentropy branch 3 times, most recently from 3b92063 to 67099cf Compare June 9, 2025 16:14
@phadej
phadej merged commit 9fcc47e into master Jun 9, 2025
@phadej
phadej deleted the getentropy branch June 9, 2025 17:14
@kazu-yamamoto

Copy link
Copy Markdown

If glibc 2.24 or earlier, which does not provide getentropy(), is installed in Linux, the build fails.

@phadej

phadej commented Jun 10, 2025 •

Copy link
Copy Markdown
Collaborator Author

According to the internet, glibc 2.24 was released 4 Aug 2016. That's roughly nine years ago. The oldest GHC the just released splitmix supports is GHC-8.6.5 released 23 April 2019. (GHC-8.6.1 is from september 2018).

TL;DR, if you run old glibc machine, don't upgrade splitmix. Upgrade your glibc first.

@kazu-yamamoto

Copy link
Copy Markdown

Make sense.
CentOS 7 does not allow any upgrades anymore.
This is good time to throw away it.
As workaround, I stay with the old splitmix for a while.

@amesgen amesgen mentioned this pull request Jun 10, 2025
@AshleyYakeley

Copy link
Copy Markdown

Does this close #93 as well?

@phadej

phadej commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator Author

@AshleyYakeley I don't know.

@AshleyYakeley

Copy link
Copy Markdown

This PR is in splitmix-0.1.2, right? I'll try it out and let you know.

@phadej

phadej commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator Author

This PR is in splitmix-0.1.2, right?

Yes.

@AshleyYakeley

Copy link
Copy Markdown

This doesn't fix #93 because the problem there is that GHCJS can't find splitmix_init.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants