Skip to content

Commit 673ef58

Browse files
committed
c(fluent-bundle): Bump rand dependency and update usage for 0.9.x
1 parent 53b4277 commit 673ef58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fluent-bundle/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ criterion.workspace = true
3838
iai.workspace = true
3939
serde = { workspace = true, features = ["derive"] }
4040
unic-langid = { workspace = true, features = ["macros"] }
41-
rand = "0.8"
41+
rand = "0.9"
4242
serde_yaml = "0.9"
4343

4444
[features]

fluent-bundle/tests/resolver_fixtures.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use fluent_bundle::resolver::ResolverError;
1010
use fluent_bundle::FluentArgs;
1111
use fluent_bundle::FluentError;
1212
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};
1515
use unic_langid::LanguageIdentifier;
1616

1717
use helpers::*;
@@ -72,7 +72,7 @@ impl Scope {
7272
}
7373

7474
fn 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)

0 commit comments

Comments
 (0)