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

[question]/[doc issue?] Generating PCG parametizations for all conceivable state-sizes? #12

Open
makoConstruct opened this issue Feb 8, 2024 · 0 comments

Comments

@makoConstruct
Copy link

makoConstruct commented Feb 8, 2024

Is it possible to define a function that can produce a PCG that has a full period, with state size n, for any n in [8, 32]? Is it possible for us to do that? Or is such a function already here?

This PCG info site says the period can be "Arbitrary" so it sounds like that should be possible?

I need this for, essentially, shuffling a large configuration-space. (I initially tried to use symmetric ciphers for this, but they're naturally not very supportive of very very small messages or non power of two bit lengths. Nor will RNGs be, but I figured PCGs might be easier to adapt than any symmetric ciphers.)

Oh and by the way, do you do non power of two modulos here? (modulos of the state, not just the output)
(this would be ideal, but I'll be fine as long as I'm within the nearest power of two)

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

No branches or pull requests

1 participant