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.rs69 pub struct RandomState { struct
76 impl fmt::Debug for RandomState { argument
82 impl RandomState { impl
85 pub fn new() -> RandomState { in new()
89 RandomState::from_keys(seeds[0], seeds[1]) in new()
93 RandomState::from_keys( in new()
100 RandomState::from_keys(PI, PI2) in new()
107 pub fn generate_with(k0: u64, k1: u64, k2: u64, k3: u64) -> RandomState { in generate_with() argument
108 RandomState::from_keys(seeds(), [k0, k1, k2, k3]) in generate_with()
111 fn from_keys(a: [u64; 4], b: [u64; 4]) -> RandomState { in from_keys() argument
[all …]
Dhash_set.rs1 use crate::{RandomState};
18 pub struct AHashSet<T, S = crate::RandomState>(HashSet<T, S>);
20 impl<T> From<HashSet<T, crate::RandomState>> for AHashSet<T> {
21 fn from(item: HashSet<T, crate::RandomState>) -> Self { in from()
26 impl<T> Into<HashSet<T, crate::RandomState>> for AHashSet<T> {
27 fn into(self) -> HashSet<T, crate::RandomState> { in into() argument
32 impl<T> AHashSet<T, RandomState> {
34 AHashSet(HashSet::with_hasher(RandomState::default())) in new()
38 AHashSet(HashSet::with_capacity_and_hasher(capacity, RandomState::default())) in with_capacity()
270 impl<T> Default for AHashSet<T, RandomState> {
[all …]
Dhash_map.rs15 use crate::{RandomState};
20 pub struct AHashMap<K, V, S = crate::RandomState>(HashMap<K, V, S>);
22 impl<K, V> From<HashMap<K, V, crate::RandomState>> for AHashMap<K, V> {
23 fn from(item: HashMap<K, V, crate::RandomState>) -> Self { in from()
28 impl<K, V> Into<HashMap<K, V, crate::RandomState>> for AHashMap<K, V> {
29 fn into(self) -> HashMap<K, V, crate::RandomState> { in into() argument
34 impl<K, V> AHashMap<K, V, RandomState> {
36 AHashMap(HashMap::with_hasher(RandomState::default())) in new()
40 AHashMap(HashMap::with_capacity_and_hasher(capacity, RandomState::default())) in with_capacity()
319 impl<K, V> Default for AHashMap<K, V, RandomState> {
[all …]
Dlib.rs56 pub use crate::random_state::RandomState;
115 RandomState::with_fixed_keys().build_hasher() in default()
179 let mut map = HashMap::<u32, u64, RandomState>::default(); in test_builder()
Daes_hash.rs6 use crate::RandomState;
61 pub(crate) fn from_random_state(rand_state: &RandomState) -> Self { in from_random_state()
229 use crate::RandomState;
233 let mut hasher = RandomState::with_seeds(1, 2, 3,4).build_hasher(); in test_sanity()
Dfallback_hash.rs6 use crate::RandomState;
48 pub(crate) fn from_random_state(rand_state: &RandomState) -> AHasher { in from_random_state()
/external/rust/crates/weak-table/src/
Dlib.rs120 use std::collections::hash_map::RandomState;
146 pub struct WeakKeyHashMap<K, V, S = RandomState> {
184 pub struct PtrWeakKeyHashMap<K, V, S = RandomState>(
192 pub struct WeakValueHashMap<K, V, S = RandomState> {
207 pub struct WeakWeakHashMap<K, V, S = RandomState> {
222 pub struct PtrWeakWeakHashMap<K, V, S = RandomState>(
230 pub struct WeakHashSet<T, S = RandomState>(WeakKeyHashMap<T, (), S>);
236 pub struct PtrWeakHashSet<T, S = RandomState>(PtrWeakKeyHashMap<T, (), S>);
Dptr_weak_hash_set.rs3 use std::collections::hash_map::RandomState;
15 impl <T: WeakElement> PtrWeakHashSet<T, RandomState>
Dweak_hash_set.rs4 use std::collections::hash_map::RandomState;
14 impl <T: WeakKey> WeakHashSet<T, RandomState> {
/external/llvm-project/compiler-rt/lib/gwp_asan/
Dguarded_pool_allocator.cpp294 uint32_t RandomState = getThreadLocals()->RandomState; in getRandomUnsigned32() local
295 RandomState ^= RandomState << 13; in getRandomUnsigned32()
296 RandomState ^= RandomState >> 17; in getRandomUnsigned32()
297 RandomState ^= RandomState << 5; in getRandomUnsigned32()
298 getThreadLocals()->RandomState = RandomState; in getRandomUnsigned32()
299 return RandomState; in getRandomUnsigned32()
/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/gwp_asan/gwp_asan/
Dguarded_pool_allocator.cpp344 uint32_t RandomState = getThreadLocals()->RandomState; in getRandomUnsigned32() local
345 RandomState ^= RandomState << 13; in getRandomUnsigned32()
346 RandomState ^= RandomState >> 17; in getRandomUnsigned32()
347 RandomState ^= RandomState << 5; in getRandomUnsigned32()
348 getThreadLocals()->RandomState = RandomState; in getRandomUnsigned32()
349 return RandomState; in getRandomUnsigned32()
/external/tensorflow/tensorflow/compiler/tests/
Dmatrix_triangular_solve_op_test.py80 rng = np.random.RandomState(0)
87 rng = np.random.RandomState(0)
100 rng = np.random.RandomState(0)
107 rng = np.random.RandomState(0)
119 rng = np.random.RandomState(0)
132 rng = np.random.RandomState(0)
140 rng = np.random.RandomState(0)
151 randn = np.random.RandomState(0).randn
163 randn = np.random.RandomState(0).randn
/external/rust/crates/ahash/tests/
Dnopanic.rs1 use ahash::{AHasher, CallHasher, RandomState};
39 let hasher1 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_random()
40 let hasher2 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_random()
Dbench.rs1 use ahash::{CallHasher, RandomState};
9 let hasher = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in aeshash()
19 let hasher = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in fallbackhash()
/external/tensorflow/tensorflow/python/kernel_tests/
Deinsum_op_test.py44 r = np.random.RandomState(0)
161 r = np.random.RandomState(0)
192 r = np.random.RandomState(0)
220 r = np.random.RandomState(0)
246 r = np.random.RandomState(0)
258 r = np.random.RandomState(0)
274 r = np.random.RandomState(0)
296 r = np.random.RandomState(seed=0)
427 r = np.random.RandomState(0)
/external/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
Dguarded_pool_allocator_tls.h22 : RandomState(0xacd979ce), NextSampleCounter(0), RecursiveGuard(false) {} in ThreadLocalPackedVariables()
27 uint32_t RandomState; member
/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/rust/crates/tokio/src/loom/std/
Dmod.rs29 use std::collections::hash_map::RandomState;
37 let rand_state = RandomState::new(); in seed()
/external/tensorflow/tensorflow/python/lib/core/
Dbfloat16_test.py359 rng = np.random.RandomState(seed=42)
369 rng = np.random.RandomState(seed=42)
382 rng = np.random.RandomState(seed=42)
393 rng = np.random.RandomState(seed=42)
406 rng = np.random.RandomState(seed=42)
415 rng = np.random.RandomState(seed=42)
423 rng = np.random.RandomState(seed=42)
433 rng = np.random.RandomState(seed=42)
/external/tensorflow/tensorflow/python/keras/preprocessing/
Ddataset_utils.py126 rng = np.random.RandomState(seed)
128 rng = np.random.RandomState(seed)
/external/rust/crates/hashbrown/tests/
Dhasher.rs32 check::<std::collections::hash_map::RandomState>(); in random_state()
/external/tensorflow/tensorflow/python/keras/datasets/
Dboston_housing.py70 rng = np.random.RandomState(seed)
/external/rust/crates/tokio-stream/src/
Dstream_map.rs577 use std::collections::hash_map::RandomState;
585 let rand_state = RandomState::new(); in seed()

123