Skip to content

Commit 65711cc

Browse files
authored
Rename FixedTimeCompare to FixedTimeEquals for clarity
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent f8bb9b6 commit 65711cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HashifyNet/Core/Utilities/HashComparer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static class HashComparer
4949
/// <param name="right">The second byte array to compare. Cannot be <see langword="null"/>.</param>
5050
/// <returns><see langword="true"/> if the two byte arrays are equal; otherwise, <see langword="false"/>.</returns>
5151
/// <exception cref="System.ArgumentNullException">Thrown if either <paramref name="left"/> or <paramref name="right"/> is <see langword="null"/>.</exception>
52-
public static bool FixedTimeCompare(byte[] left, byte[] right)
52+
public static bool FixedTimeEquals(byte[] left, byte[] right)
5353
{
5454
if (left == null)
5555
{
@@ -92,10 +92,11 @@ public static bool FixedTimeCompare(byte[] left, byte[] right)
9292
/// <param name="right">The second byte array to compare. Cannot be <see langword="null"/>.</param>
9393
/// <returns><see langword="true"/> if the two immutable byte arrays are equal; otherwise, <see langword="false"/>.</returns>
9494
/// <exception cref="System.ArgumentNullException">Thrown if either <paramref name="left"/> or <paramref name="right"/> is <see langword="null"/>.</exception>
95-
public static bool FixedTimeCompare(ImmutableArray<byte> left, ImmutableArray<byte> right)
95+
public static bool FixedTimeEquals(ImmutableArray<byte> left, ImmutableArray<byte> right)
9696
{
9797
return FixedTimeCompare(left.ToArray(), right.ToArray());
9898
}
9999
}
100100
}
101101

102+

0 commit comments

Comments
 (0)