Module rhai::config::hashing

source ·
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§