Re:Random Numbers in Bash
by mywittyname on Monday March 27, 2023 @02:57PM
(#35330788)
Maths isn't my background, but isn't this a serious flaw with the quality of the pseudo-random numbers it generates?
I remember learning about the enigma machine and how it had a flaw where a letter could not be transformed into itself. And knowing that, for example, an A could never be a A was critical to cracking the enigma code. Because of that knowledge, my cryptographic intuition is that any seemingly minor fact like this could actually be a critical flaw.
Re:Random Numbers in Bash
by jwilk on Monday March 27, 2023 @05:45PM
(#35333117)
I doubt it matters much. Bash's $RANDOM is implemented using a linear congruential generator, which is not suitable for cryptographic applications anyway.
I remember learning about the enigma machine and how it had a flaw where a letter could not be transformed into itself. And knowing that, for example, an A could never be a A was critical to cracking the enigma code. Because of that knowledge, my cryptographic intuition is that any seemingly minor fact like this could actually be a critical flaw.