diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-05 23:17:40 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-05 23:17:40 +0700 |
commit | f5c5119255ce14081009a3dc9ccc1427c78f47a3 (patch) | |
tree | 2afd90b47aee6697b359c9e066f1e2dbfea8f678 /crypto/src/security | |
parent | Use generics in Enums (diff) | |
download | BouncyCastle.NET-ed25519-f5c5119255ce14081009a3dc9ccc1427c78f47a3.tar.xz |
Remove Times class
Diffstat (limited to 'crypto/src/security')
-rw-r--r-- | crypto/src/security/SecureRandom.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/security/SecureRandom.cs b/crypto/src/security/SecureRandom.cs index 4e118e77a..0ab33c4c6 100644 --- a/crypto/src/security/SecureRandom.cs +++ b/crypto/src/security/SecureRandom.cs @@ -4,14 +4,13 @@ using System.Threading; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Prng; using Org.BouncyCastle.Crypto.Utilities; -using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Security { public class SecureRandom : Random { - private static long counter = Times.NanoTime(); + private static long counter = DateTime.UtcNow.Ticks; private static long NextCounterValue() { |