API reference Obsidian.API.World.Generator.RandomSources
RandomSupport class
Seed helpers shared by the random sources (vanilla RandomSupport).
public static class RandomSupport
In Obsidian.API.
Methods
MixStafford13(long)
public static long MixStafford13(long value);Stafford's "Mix13" 64-bit finalizer.
SeedFromHashOf(string)
public static Seed128Bit SeedFromHashOf(string name);Builds a 128-bit seed from the MD5 hash of the UTF-8 bytes of name.
UpgradeSeedTo128Bit(long)
public static Seed128Bit UpgradeSeedTo128Bit(long seed);Expands a 64-bit seed to a well-mixed 128-bit seed, as used by XoroshiroRandomSource.
UpgradeSeedTo128BitUnmixed(long)
public static Seed128Bit UpgradeSeedTo128BitUnmixed(long seed);Expands a 64-bit seed to 128 bits without mixing.
Fields
GoldenRatio64
public const long GoldenRatio64 = -7046029254386353131;64-bit golden ratio, also the Xoroshiro fallback low seed for an all-zero state.
SilverRatio64
public const long SilverRatio64 = 7640891576956012809;64-bit silver ratio, also the Xoroshiro fallback high seed for an all-zero state.