#pragma warning disable CS0419 // Ambiguous reference in cref attribute /// <summary> /// Returns a secure hash code for this string. /// </summary> /// <param name="text"><see cref="string"/> instance.</param> /// <returns>Returns a <see cref="int"/> hash value.</returns> /// <remarks>Use this function instead of default <see cref="string.GetHashCode"/> to unsure that gets a unmutable hash code.</remarks> public static int GetSecureHashCode(this string text) { return(HashGenerator.CalculateHashCode(text)); }