Home
last modified time | relevance | path

Searched refs:RandomState (Results 1 – 25 of 72) sorted by relevance

123

/external/rust/crates/ahash/src/
Drandom_state.rs230 pub struct RandomState { struct
237 impl fmt::Debug for RandomState { argument
243 impl RandomState { implementation
250 pub fn new() -> RandomState { in new()
266 pub fn generate_with(k0: u64, k1: u64, k2: u64, k3: u64) -> RandomState { in generate_with() argument
269 RandomState::from_keys(&fixed[0], &[k0, k1, k2, k3], src.gen_hasher_seed()) in generate_with()
272 fn from_keys(a: &[u64; 4], b: &[u64; 4], c: usize) -> RandomState { in from_keys() argument
274 let mut hasher = AHasher::from_random_state(&RandomState { k0, k1, k2, k3 });
282 RandomState {
292 pub(crate) fn with_fixed_keys() -> RandomState { in with_fixed_keys()
[all …]
Dhash_set.rs1 use crate::RandomState;
17 pub struct AHashSet<T, S = RandomState>(HashSet<T, S>);
19 impl<T> From<HashSet<T, RandomState>> for AHashSet<T> {
20 fn from(item: HashSet<T, RandomState>) -> Self { in from()
43 impl<T> Into<HashSet<T, RandomState>> for AHashSet<T> {
44 fn into(self) -> HashSet<T, RandomState> { in into() argument
49 impl<T> AHashSet<T, RandomState> {
53 AHashSet(HashSet::with_hasher(RandomState::new())) in new()
59 AHashSet(HashSet::with_capacity_and_hasher(capacity, RandomState::new())) in with_capacity()
244 impl<T> FromIterator<T> for AHashSet<T, RandomState>
[all …]
Dhash_map.rs16 use crate::RandomState;
21 pub struct AHashMap<K, V, S = crate::RandomState>(HashMap<K, V, S>);
23 impl<K, V> From<HashMap<K, V, crate::RandomState>> for AHashMap<K, V> {
24 fn from(item: HashMap<K, V, crate::RandomState>) -> Self { in from()
47 impl<K, V> Into<HashMap<K, V, crate::RandomState>> for AHashMap<K, V> {
48 fn into(self) -> HashMap<K, V, crate::RandomState> { in into() argument
53 impl<K, V> AHashMap<K, V, RandomState> {
57 AHashMap(HashMap::with_hasher(RandomState::new())) in new()
63 AHashMap(HashMap::with_capacity_and_hasher(capacity, RandomState::new())) in with_capacity()
347 impl<K, V> FromIterator<(K, V)> for AHashMap<K, V, RandomState>
[all …]
Dlib.rs132 pub type HashMap<K, V> = std::collections::HashMap<K, V, crate::RandomState>;
135 pub type HashSet<K> = std::collections::HashSet<K, crate::RandomState>;
146 pub use crate::random_state::RandomState;
247 RandomState::with_fixed_keys().build_hasher() in default()
346 let mut map = HashMap::<u32, u64, RandomState>::default(); in test_builder()
378 let hasher_build = RandomState::with_seeds(0, 0, 0, 0); in test_non_zero_specialized()
Dspecialize.rs142 let build_hasher = RandomState::with_seeds(1, 2, 3, 4); in test_specialized_invoked()
152 let build_hasher = RandomState::with_seeds(2, 2, 2, 2); in test_input_processed()
178 let build_hasher = RandomState::with_seeds(1, 2, 3, 4); in test_ref_independent()
198 let build_hasher = RandomState::with_seeds(10, 20, 30, 40); in test_ref_independent()
Daes_hash.rs4 use crate::RandomState;
72 pub(crate) fn from_random_state(rand_state: &RandomState) -> Self { in from_random_state()
367 use crate::RandomState;
371 let mut hasher = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in test_sanity()
Dfallback_hash.rs6 use crate::RandomState;
57 pub(crate) fn from_random_state(rand_state: &RandomState) -> AHasher { in from_random_state()
/external/rust/crates/weak-table/src/
Dlib.rs175 pub struct WeakKeyHashMap<K, V, S = RandomState> {
213 pub struct PtrWeakKeyHashMap<K, V, S = RandomState>(
221 pub struct WeakValueHashMap<K, V, S = RandomState> {
236 pub struct WeakWeakHashMap<K, V, S = RandomState> {
251 pub struct PtrWeakWeakHashMap<K, V, S = RandomState>(
259 pub struct WeakHashSet<T, S = RandomState>(WeakKeyHashMap<T, (), S>);
265 pub struct PtrWeakHashSet<T, S = RandomState>(PtrWeakKeyHashMap<T, (), S>);
Dcompat.rs5 pub use ahash::RandomState;
10 pub use std::collections::hash_map::RandomState;
/external/rust/crates/ahash/tests/
Dnopanic.rs1 use ahash::{AHasher, RandomState};
11 let mut hasher1 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_final()
12 let mut hasher2 = RandomState::with_seeds(3, 4, 5, 6).build_hasher(); in hash_test_final()
49 let hasher1 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_specialize()
50 let hasher2 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_specialize()
65 let build_hasher1 = RandomState::with_seeds(1, 2, 3, 4); in hash_test_random()
66 let build_hasher2 = RandomState::with_seeds(1, 2, 3, 4); in hash_test_random()
Dbench.rs3 use ahash::{AHasher, RandomState};
30 let build_hasher = RandomState::with_seeds(1, 2, 3, 4); in ahash()
142 … let hm: hashbrown::HashMap<i32, i32, RandomState> = (0..1_000_000).map(|i| (i, i)).collect(); in bench_map()
164 …let hm: std::collections::HashMap<i32, i32, RandomState> = (0..1_000_000).map(|i| (i, i)).collect(… in bench_map()
Dmap_tests.rs5 use ahash::RandomState;
170 let build_hasher = RandomState::with_seeds(1, 2, 3, 4); in test_bucket_distribution()
206 let mut hasher = RandomState::with_seeds(12, 34, 56, 78).build_hasher(); in ahash_vec()
/external/libdrm/
Dxf86drmRandom.c85 RandomState *state; in drmRandomCreate()
121 RandomState *s = (RandomState *)state; in drmRandom()
135 RandomState *s = (RandomState *)state; in drmRandomDouble()
Dxf86drmRandom.h27 typedef struct RandomState { struct
35 } RandomState; argument
/external/tensorflow/tensorflow/compiler/tests/
Dmatrix_triangular_solve_op_test.py77 rng = np.random.RandomState(0)
84 rng = np.random.RandomState(0)
90 rng = np.random.RandomState(0)
103 rng = np.random.RandomState(0)
110 rng = np.random.RandomState(0)
122 rng = np.random.RandomState(0)
135 rng = np.random.RandomState(0)
143 rng = np.random.RandomState(0)
154 randn = np.random.RandomState(0).randn
166 randn = np.random.RandomState(0).randn
/external/gwp_asan/gwp_asan/
Dguarded_pool_allocator.cpp462 uint32_t RandomState = getThreadLocals()->RandomState; in getRandomUnsigned32() local
463 RandomState ^= RandomState << 13; in getRandomUnsigned32()
464 RandomState ^= RandomState >> 17; in getRandomUnsigned32()
465 RandomState ^= RandomState << 5; in getRandomUnsigned32()
466 getThreadLocals()->RandomState = RandomState; in getRandomUnsigned32()
467 return RandomState; in getRandomUnsigned32()
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Deinsum_op_test.py40 r = np.random.RandomState(0)
157 r = np.random.RandomState(0)
188 r = np.random.RandomState(0)
216 r = np.random.RandomState(0)
242 r = np.random.RandomState(0)
254 r = np.random.RandomState(0)
270 r = np.random.RandomState(0)
292 r = np.random.RandomState(seed=0)
423 r = np.random.RandomState(0)
/external/gwp_asan/gwp_asan/platform_specific/
Dguarded_pool_allocator_tls.h22 : RandomState(0xacd979ce), NextSampleCounter(0), RecursiveGuard(false) {} in ThreadLocalPackedVariables()
27 uint32_t RandomState; member
/external/uwb/src/rust/uwb_core/src/params/
Duci_packets.rs18 use std::collections::{hash_map::RandomState, HashMap};
111 ) -> HashMap<AppConfigTlvType, &Vec<u8>, RandomState> { in app_config_tlvs_to_map() argument
124 ) -> HashMap<DeviceConfigId, &Vec<u8>, RandomState> { in device_config_tlvs_to_map() argument
/external/rust/crates/tokio/src/loom/std/
Dmod.rs31 use std::collections::hash_map::RandomState;
39 let rand_state = RandomState::new(); in seed()
/external/tensorflow/tensorflow/python/lib/core/
Dbfloat16_test.py501 rng = np.random.RandomState(seed=42)
512 rng = np.random.RandomState(seed=42)
526 rng = np.random.RandomState(seed=42)
535 rng = np.random.RandomState(seed=42)
548 rng = np.random.RandomState(seed=42)
565 rng = np.random.RandomState(seed=42)
581 rng = np.random.RandomState(seed=42)
593 rng = np.random.RandomState(seed=42)
/external/rust/crates/tokio-util/src/task/
Djoin_map.rs4 use std::collections::hash_map::RandomState;
103 pub struct JoinMap<K, V, S = RandomState> {
157 Self::with_hasher(RandomState::new()) in new()
/external/rust/crates/hashbrown/tests/
Dhasher.rs32 check::<std::collections::hash_map::RandomState>(); in random_state()
/external/rust/crates/ahash/
DREADME.md35 use ahash::{AHasher, RandomState};
38 let mut map: HashMap<i32, i32, RandomState> = HashMap::default();
64 …plication. [Multiple apis](https://docs.rs/ahash/latest/ahash/random_state/struct.RandomState.html)
/external/rust/crates/tokio-stream/src/
Dstream_map.rs603 use std::collections::hash_map::RandomState;
611 let rand_state = RandomState::new(); in seed()

123