fix templateing issue

This commit is contained in:
l1npengtul 2022-11-01 01:26:23 +09:00
parent 488a8eab5e
commit 79e7c305bf
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ fn main() {
let seed = env::var("RHAI_AHASH_SEED").map_or_else(|_| "None".into(), |s| format!("Some({s})"));
contents = contents.replace("{{AHASH_SEED}}", &seed);
contents = contents.replace("{{ AHASH_SEED }}", &seed);
File::create("src/config/hashing.rs")
.expect("cannot create `config.rs`")

View File

@ -117,7 +117,7 @@ mod internal {
#[cfg(not(feature = "static_hash"))]
mod internal {
const AHASH_SEED: Option<[u64; 4]> = {{ AHASH_SEED }};
const AHASH_SEED: Option<[u64; 4]> = None;
/// Gets the current Rhai Ahash Seed. If the seed is not yet defined, this will automatically set a seed.
/// The default seed is not stable and may change between versions.