CSPRNG-safe

This commit is contained in:
rmcrackan
2026-06-10 12:12:38 -04:00
parent 1547e6bec3
commit 1ad458fe5b

View File

@@ -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);
}
}