🔀Seed RNG (deprecated)

by Ricardo “Rudxain” Fernández Serrata

Version 10 (July 10, 2022)

Download (289 downloads)

A Pseudo-Random Number Generator based on MD5 and XOR. It uses XOR to truncate the MD5 digest to 32b/4B/8 hex-chars by "consuming" all Bytes to ensure that no data is discarded.

The period length is 2^32 - 1 or smaller (depends on seed). This is because the state size is 32bits, even though MD5 has a 128b digest.

This PRNG is NOT cryptographically secure since MD5 is not secure. I only used MD5 because it's more random than CRC32.

Better alternative: llamalab.com/automate/community/flows/41768

Truly random numbers (without a server): llamalab.com/automate/community/flows/39114

This flow is deprecated (legacy code) because I realized that an internal state of 32b is not enough for general purpose, and repeatedly calling MD5 is inefficient. I'll keep this posted because of archiving/historical reasons.

LICENSE: https://unlicense.org

4.4 average rating from 5 reviews

5 stars
3
4 stars
1
3 stars
1
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.