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_ahash_seed.

Example

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

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

Example

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

Structs

  • A thread-safe cell which can be written to only once.

Functions