File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ modular-bitfield = { workspace = true }
5454num_cpus = { workspace = true }
5555num_enum = { workspace = true }
5656qualifier_attr = { workspace = true , optional = true }
57- rand = { workspace = true }
57+ rand = { workspace = true , features = [ " small_rng " ] }
5858rayon = { workspace = true }
5959seqlock = { workspace = true }
6060serde = { workspace = true , features = [" rc" ] }
Original file line number Diff line number Diff line change 22//! which can be large, loaded many times, and rarely change.
33#[ cfg( feature = "dev-context-only-utils" ) ]
44use qualifier_attr:: { field_qualifiers, qualifiers} ;
5+ use rand:: SeedableRng ;
56use {
67 ahash:: random_state:: RandomState as AHashRandomState ,
78 dashmap:: { mapref:: entry:: Entry , DashMap } ,
89 log:: * ,
910 rand:: {
10- <<<<<<< HEAD
11- seq:: { IteratorRandom , SliceRandom } ,
12- thread_rng, Rng ,
13- =======
1411 rngs:: SmallRng ,
15- seq:: { IndexedRandom as _ , IteratorRandom } ,
16- Rng , SeedableRng ,
17- >>>>>>> 1 ffcdcc60 ( accounts-db: Use `SmallRng ` for LRU eviction sampling ( #10640 ) )
12+ seq:: { IteratorRandom , SliceRandom } ,
13+ Rng ,
1814 } ,
1915 solana_account:: { AccountSharedData , ReadableAccount } ,
2016 solana_clock:: Slot ,
@@ -293,11 +289,7 @@ impl ReadOnlyAccountsCache {
293289 . name ( "solAcctReadCache" . to_string ( ) )
294290 . spawn ( move || {
295291 info ! ( "AccountsReadCacheEvictor has started" ) ;
296- <<<<<<< HEAD
297- let mut rng = thread_rng( ) ;
298- =======
299- let mut rng = SmallRng :: from_os_rng ( ) ;
300- >>>>>>> 1 ffcdcc60 ( accounts-db: Use `SmallRng ` for LRU eviction sampling ( #10640 ) )
292+ let mut rng = SmallRng :: from_entropy ( ) ;
301293 loop {
302294 if exit. load ( Ordering :: Relaxed ) {
303295 break ;
You can’t perform that action at this time.
0 commit comments