aboutsummaryrefslogtreecommitdiff
path: root/lib/Hashing.Portable/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Hashing.Portable/src')
-rw-r--r--lib/Hashing.Portable/src/RandomHash.cs3
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