From 9098872d320ad7c48fe1f58fedd7113aa08c8200 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 20 Aug 2018 20:16:54 -0700 Subject: [PATCH] Upgrade rand (cherry picked from commit c7d979214df33d5d6b3f69b4c56f8b9446c8466a) --- phf_generator/Cargo.toml | 2 +- phf_generator/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phf_generator/Cargo.toml b/phf_generator/Cargo.toml index fda809d3..99b1c7b4 100644 --- a/phf_generator/Cargo.toml +++ b/phf_generator/Cargo.toml @@ -8,5 +8,5 @@ repository = "https://github.com/sfackler/rust-phf" documentation = "https://docs.rs/phf_generator/0.7.22/phf_generator" [dependencies] -rand = "0.4" +rand = "0.5" phf_shared = { version = "=0.7.22", path = "../phf_shared" } diff --git a/phf_generator/src/lib.rs b/phf_generator/src/lib.rs index 95f72195..97cc82f5 100644 --- a/phf_generator/src/lib.rs +++ b/phf_generator/src/lib.rs @@ -7,7 +7,7 @@ use rand::{SeedableRng, XorShiftRng, Rng}; const DEFAULT_LAMBDA: usize = 5; -const FIXED_SEED: [u32; 4] = [3141592653, 589793238, 462643383, 2795028841]; +const FIXED_SEED: [u8; 16] = *b"\xec\x58\xdf\xa7\x46\x41\xaf\x52\xad\x0d\x16\xe7\x7d\x57\x66\x23"; pub struct HashState { pub key: u64,