mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-06-27 08:46:20 -04:00
CSPRNG-safe
This commit is contained in:
@@ -290,7 +290,7 @@ public partial class Cdm
|
||||
private static uint RandomUint()
|
||||
{
|
||||
var bts = new byte[4];
|
||||
new Random().NextBytes(bts);
|
||||
RandomNumberGenerator.Fill(bts);
|
||||
return BitConverter.ToUInt32(bts, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user