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
3838iai.workspace = true
3939serde = { workspace = true , features = [" derive" ] }
4040unic-langid = { workspace = true , features = [" macros" ] }
41- rand = " 0.8 "
41+ rand = " 0.9 "
4242serde_yaml = " 0.9"
4343
4444[features ]
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use fluent_bundle::resolver::ResolverError;
1010use fluent_bundle:: FluentArgs ;
1111use fluent_bundle:: FluentError ;
1212use 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 } ;
1515use unic_langid:: LanguageIdentifier ;
1616
1717use helpers:: * ;
@@ -72,7 +72,7 @@ impl Scope {
7272}
7373
7474fn generate_random_hash ( ) -> String {
75- let mut rng = thread_rng ( ) ;
75+ let mut rng = rng ( ) ;
7676 let chars: String = iter:: repeat ( ( ) )
7777 . map ( |( ) | rng. sample ( Alphanumeric ) )
7878 . map ( char:: from)
You can’t perform that action at this time.
0 commit comments