using System.Collections.Generic;
public static void Main() {
Console.WriteLine($"\t{Nm} = {Nm.GetFNV32Val()},");
Console.WriteLine("public enum KnownBiome : uint {");
internal static class HashUtils {
internal static uint GetFNV32Val( this IEnumerable<char> Chars ) => FNV32(Chars.Select(C => Convert.ToByte(char.ToLower(C))));
internal static ulong GetFNV64Val( this IEnumerable<char> Chars ) => FNV64(Chars.Select(C => Convert.ToByte(char.ToLower(C))));
internal static string GetFNV32( this IEnumerable<char> Chars ) => GetFNV32Val(Chars).ToString("X");
internal static uint FNV32( this IEnumerable<byte> Data ) {
foreach ( byte B in Data ) {
internal static string GetFNV64( this IEnumerable<char> Chars ) => GetFNV64Val(Chars).ToString("X");
internal static ulong FNV64( this IEnumerable<byte> Data ) {
ulong Hash = 0xCBF29CE484222325;
foreach ( byte B in Data ) {
Hash *= 0x00000100000001B3;