summary refs log tree commit diff
path: root/crypto/src/util/Arrays.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/Arrays.cs')
-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