File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ criterion.workspace = true
38
38
iai.workspace = true
39
39
serde = { workspace = true , features = [" derive" ] }
40
40
unic-langid = { workspace = true , features = [" macros" ] }
41
- rand = " 0.8 "
41
+ rand = " 0.9 "
42
42
serde_yaml = " 0.9"
43
43
44
44
[features ]
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use fluent_bundle::resolver::ResolverError;
10
10
use fluent_bundle:: FluentArgs ;
11
11
use fluent_bundle:: FluentError ;
12
12
use fluent_bundle:: { FluentBundle , FluentResource , FluentValue } ;
13
- use rand:: distributions :: Alphanumeric ;
14
- use rand:: { thread_rng , Rng } ;
13
+ use rand:: distr :: Alphanumeric ;
14
+ use rand:: { rng , Rng } ;
15
15
use unic_langid:: LanguageIdentifier ;
16
16
17
17
use helpers:: * ;
@@ -72,7 +72,7 @@ impl Scope {
72
72
}
73
73
74
74
fn generate_random_hash ( ) -> String {
75
- let mut rng = thread_rng ( ) ;
75
+ let mut rng = rng ( ) ;
76
76
let chars: String = iter:: repeat ( ( ) )
77
77
. map ( |( ) | rng. sample ( Alphanumeric ) )
78
78
. map ( char:: from)
You can’t perform that action at this time.
0 commit comments