Module hashing

Expand description

Fixed hashing seeds for stable hashing.

Set to None to disable stable hashing.

See rhai::config::hashing::set_hashing_seed.

§Example

// Set the hashing seed to [1, 2, 3, 4]
rhai::config::hashing::set_hashing_seed(Some([1, 2, 3, 4])).unwrap();

Alternatively, set this at compile time via the RHAI_HASHING_SEED environment variable.

§Example

env RHAI_HASHING_SEED ="[236,800,954,213]"

Functions§

get_ahash_seedDeprecated
Get the current hashing Seed.
get_hashing_seed
Get the current hashing Seed.
set_ahash_seedDeprecated
Set the hashing seed. This is used to hash functions etc.
set_hashing_seed
Set the hashing seed. This is used to hash functions etc.