Skip to content
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

\pgfmathrand & co inaccuracies #2478

Open
1 of 4 tasks
xworld21 opened this issue Jan 8, 2025 · 0 comments
Open
1 of 4 tasks

\pgfmathrand & co inaccuracies #2478

xworld21 opened this issue Jan 8, 2025 · 0 comments

Comments

@xworld21
Copy link
Contributor

xworld21 commented Jan 8, 2025

Three things:

  • trivial (and urgent?): \pgfmathrand@ should return a number between -1 and 1, but now it's between 1 and 3 (a minus sign is missing!)
  • easy: \pgfsetmathseed should be set to call srand in order to make the output deterministic (or rather, the corresponding low level primitive should do that)
    • corollary of the above, SOURCE_DATE_EPOCH should trigger a deterministic call to srand, since PGF derives the default seed from the current time
  • hard, but not that much: LaTeXML should use the same random number generator as PGF so that it generates the same image when the seed is specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants