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

Support for auto-identification of PRNG algorithm #10

Open
altf4 opened this issue Mar 21, 2014 · 0 comments
Open

Support for auto-identification of PRNG algorithm #10

altf4 opened this issue Mar 21, 2014 · 0 comments

Comments

@altf4
Copy link
Owner

altf4 commented Mar 21, 2014

At first, I didn't think this was going to be possible, but it actually will be in many cases. Turns out that different PRNGs produce numbers with distinctive features. Notably modulo size.

glibc rand() makes 31 bit integers
windows libc rand() makes 16 bit integers
MT makes 32 bit integers

Different MT variants will appear the same, but that's still useful. Especially since the detection is so easy.

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

1 participant