From 9f9a68058f5329cc78218cba84b489b7e8b3c76c Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Sat, 8 Dec 2018 16:47:27 -0800 Subject: [PATCH] [SL.Core] Fix mistake. :( --- src/SixLabors.Core/HashCode.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SixLabors.Core/HashCode.cs b/src/SixLabors.Core/HashCode.cs index be0e8bd3aa..73d4b3574c 100644 --- a/src/SixLabors.Core/HashCode.cs +++ b/src/SixLabors.Core/HashCode.cs @@ -46,6 +46,7 @@ https://raw.githubusercontent.com/Cyan4973/xxHash/5c174cfa4e45a42f94082dc0d4539b using System.Runtime.CompilerServices; [assembly: TypeForwardedTo(typeof(System.HashCode))] #else +using System.Buffers.Binary; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; @@ -80,7 +81,7 @@ namespace System rng.GetBytes(data); } - return Convert.ToUInt32(data); + return BinaryPrimitives.ReadUInt32LittleEndian(data); } public static int Combine(T1 value1)