by pavel_lishin · 2y ago · 0 comments
Someone pointed out that what you made is just a function that outputs triangle numbers: https://news.ycombinator.com/item?id=39462194
So, it's nowhere near a pseudo-random number generator; for any given output, it's trivial to guess the next (and previous) numbers.
I also don't understand where your 42.5%/43% numbers are coming from. What does it mean for "every bit is 42.5% random"? How does your code output a byte every clock cycle?
I compiled it, ran ./vitalixprng &> output.txt and then ran Detect It Easy's entropy measuring tool on output.txt to give me around 3.41 bits of randomness per 8 bits.
It outputs 2 hex characters (hex character = half byte = 4 bits) per clock cycle.
It gives out pseudorandom output that looks like this:
28595827262617506937569201755869372950673748294758392
And the measure of entropy means nothing. If I know that the last number that was output was 10, I know the following number will be 15.