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_ seed Deprecated Get the current hashing Seed. - Get the current hashing Seed.
- set_
ahash_ seed Deprecated Set the hashing seed. This is used to hash functions etc. - Set the hashing seed. This is used to hash functions etc.