altf4 / altf4/untwister

Support for auto-identification of PRNG algorithm

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
390
Forks
40
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.