jeudi 1 juillet 2021

Seeding Random from a GUID? [closed]

My system needs to generate pseudo-random numbers, and the only seed input it has available is a System.Guid that gets passed into the method. I'm wanting to use the Random.Random class to generate random values, but that takes an Int32 as a seed. How can I safely seed Random.Random with my Guid's value, ensuring that the Guid will adequately provide the randomness needed by the constructor of Random.Random?




Aucun commentaire:

Enregistrer un commentaire