Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

RNG Distribution with multiple instances

If I need to generate random 8 bytes with RandomNumberGenerator class, I can generate all 8 bytes with a single instance and also I can use two instances of RandomNumberGenerator to generate 8 bytes – first one will generate 4 bytes and the second one will generate remaining 4 bytes. Question is – if I use two instances of RandomNumberGenerator will it make some any of 8 bytes more probable than others? Will it be a secure generator?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

RandomNumberGenerator is a crypto-secure random generator, so generating two bits with one instance should be just as secure as generating one bit with two instances.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading