diff options
Diffstat (limited to 'lib/Hashing.Portable')
-rw-r--r-- | lib/Hashing.Portable/src/RandomHash.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Hashing.Portable/src/RandomHash.cs b/lib/Hashing.Portable/src/RandomHash.cs index ebc8845..486b0c4 100644 --- a/lib/Hashing.Portable/src/RandomHash.cs +++ b/lib/Hashing.Portable/src/RandomHash.cs @@ -210,9 +210,10 @@ namespace VNLib.Hashing } /// <summary> - /// Fill the buffer with non-zero bytes + /// Fill the buffer with cryptographically secure non-zero bytes /// </summary> /// <param name="data">Buffer to fill</param> + [MethodImpl(MethodImplOptions.NoOptimization)] public static void GetRandomBytes(Span<byte> data) => RandomNumberGenerator.Fill(data); } }
\ No newline at end of file |