diff --git a/AGXUnity/Utils/Extensions.cs b/AGXUnity/Utils/Extensions.cs index a9cc04f1..a4930263 100644 --- a/AGXUnity/Utils/Extensions.cs +++ b/AGXUnity/Utils/Extensions.cs @@ -464,12 +464,10 @@ public static string Color( this string str, Color color ) return GUI.AddColorTag( str, color ); } - public static System.UInt32 To32BitFnv1aHash( this string str ) + public static uint To32BitFnv1aHash( this string str ) { - IEnumerable bytes = str.ToCharArray().Select( Convert.ToByte ); - - System.UInt32 hash = 2166136261u; - foreach ( byte val in bytes ) { + uint hash = 2166136261u; + foreach ( char val in str ) { hash ^= val; hash *= 16777619u; }