Random Number Generator: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Sprinkle in cryptographic security |
m Fixed a minor spelling mistake. |
||
Line 82: | Line 82: | ||
== Cryptographically secure pseudorandom number generators == |
== Cryptographically secure pseudorandom number generators == |
||
Now follow some CSPRNGs. It is important to remember that, as with |
Now follow some CSPRNGs. It is important to remember that, as with everything cryptographic, it is best <em>not</em> to homebrew it if you are planning on actually using it. There are many ways things can go wrong, and the more complex the algorithm, the more chances of you making a mistake. Of course, for hobby uses it's perfectly fine; just don't go online banking with your handmade TLS key source. |
||
=== x86 RDRAND Instruction === |
=== x86 RDRAND Instruction === |
||
Line 116: | Line 116: | ||
[https://www.bentasker.co.uk/blog/software-development/689-writing-a-chacha20-based-csprng Writing (and backdooring) a ChaCha20 based CSPRNG] may be an interesting article on the subject, and how it can go wrong in surprising ways. |
[https://www.bentasker.co.uk/blog/software-development/689-writing-a-chacha20-based-csprng Writing (and backdooring) a ChaCha20 based CSPRNG] may be an interesting article on the subject, and how it can go wrong in surprising ways. |
||
== Pseudorandom number generators == |
== Pseudorandom number generators == |
||