summary refs log tree commit diff
path: root/crypto/src/security
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-05 23:17:40 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-05 23:17:40 +0700
commitf5c5119255ce14081009a3dc9ccc1427c78f47a3 (patch)
tree2afd90b47aee6697b359c9e066f1e2dbfea8f678 /crypto/src/security
parentUse generics in Enums (diff)
downloadBouncyCastle.NET-ed25519-f5c5119255ce14081009a3dc9ccc1427c78f47a3.tar.xz
Remove Times class
Diffstat (limited to 'crypto/src/security')
-rw-r--r--crypto/src/security/SecureRandom.cs3
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()
         {