From f5c5119255ce14081009a3dc9ccc1427c78f47a3 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 5 Oct 2022 23:17:40 +0700 Subject: Remove Times class --- crypto/src/tls/AbstractTlsContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/tls') diff --git a/crypto/src/tls/AbstractTlsContext.cs b/crypto/src/tls/AbstractTlsContext.cs index a5ac85962..40a8e8f75 100644 --- a/crypto/src/tls/AbstractTlsContext.cs +++ b/crypto/src/tls/AbstractTlsContext.cs @@ -11,7 +11,7 @@ namespace Org.BouncyCastle.Tls internal abstract class AbstractTlsContext : TlsContext { - private static long counter = Times.NanoTime(); + private static long counter = DateTime.UtcNow.Ticks; private static long NextCounterValue() { @@ -22,7 +22,7 @@ namespace Org.BouncyCastle.Tls { byte[] additionalSeedMaterial = new byte[16]; Pack.UInt64_To_BE((ulong)NextCounterValue(), additionalSeedMaterial, 0); - Pack.UInt64_To_BE((ulong)Times.NanoTime(), additionalSeedMaterial, 8); + Pack.UInt64_To_BE((ulong)DateTime.UtcNow.Ticks, additionalSeedMaterial, 8); additionalSeedMaterial[0] &= 0x7F; additionalSeedMaterial[0] |= (byte)(connectionEnd << 7); -- cgit 1.4.1