::with_seed(42)); # m.insert(1, 2); ``` Or for uses besides a hashhmap: ``` use std::hash::BuildHasher; use ahash::RandomState; let hash_builder = RandomState::with_seed(42); let hash = hash_builder.hash_one("Some Data"); ``` There are several constructors for [RandomState] with different ways to supply seeds. # Convenience wrappers For convenience, both new-type wrappers and type aliases are provided. The new type wrappers are called called `AHashMap` and `AHashSet`. ``` use ahash::AHashMap; let mut map: AHashMap = AHashMap::new(); map.insert(12, 34); ``` This avoids the need to type "RandomState". (For convenience `From`, `Into`, and `Deref` are provided). # Aliases For even less typing and better interop with existing libraries (such as rayon) which require a `std::collection::HashMap` , the type aliases [HashMap], [HashSet] are provided. ``` use ahash::{HashMap, HashMapExt}; let mut map: HashMap = HashMap::new(); map.insert(12, 34); ``` Note the import of [HashMapExt]. This is needed for the constructor.