summary refs log tree commit diff
path: root/crypto/src/util
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-23 20:07:22 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-23 20:07:22 +0700
commit968f69ea71fe711d603968c6717cf7a33bcd8450 (patch)
tree161a9b63ff0d96e5610433becefeb56e10daafa3 /crypto/src/util
parentComplete SecureRandom refactoring (diff)
downloadBouncyCastle.NET-ed25519-968f69ea71fe711d603968c6717cf7a33bcd8450.tar.xz
Various cleanup
Diffstat (limited to 'crypto/src/util')
-rw-r--r--crypto/src/util/Arrays.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs
index e8dd02148..936e510be 100644
--- a/crypto/src/util/Arrays.cs
+++ b/crypto/src/util/Arrays.cs
@@ -631,10 +631,7 @@ namespace Org.BouncyCastle.Utilities
 #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
         public static void Fill<T>(Span<T> ts, T t)
         {
-            for (int i = 0; i < ts.Length; ++i)
-            {
-                ts[i] = t;
-            }
+            ts.Fill(t);
         }
 #endif