diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-23 20:07:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-23 20:07:22 +0700 |
commit | 968f69ea71fe711d603968c6717cf7a33bcd8450 (patch) | |
tree | 161a9b63ff0d96e5610433becefeb56e10daafa3 /crypto/src/util | |
parent | Complete SecureRandom refactoring (diff) | |
download | BouncyCastle.NET-ed25519-968f69ea71fe711d603968c6717cf7a33bcd8450.tar.xz |
Various cleanup
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/Arrays.cs | 5 |
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 |