aboutsummaryrefslogtreecommitdiff
path: root/lib/Hashing.Portable/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-10-18 21:51:34 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-10-18 21:51:34 -0400
commitf44cdf8f2685c37e5a1d77018a5227942b578863 (patch)
tree70820eef3328c4269c46dcc4f129f1b798f56666 /lib/Hashing.Portable/src
parent44a05ac3854d6cd0fa65d8ffc0f6efe7abfc87ad (diff)
account and endpoint security updates
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