Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rand from 0.8.5 to 0.9.0 #414

Merged
merged 3 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2
updates:
- package-ecosystem: cargo
directory: '/'
directory: "/"
schedule:
interval: 'monthly'
day: 'thursday'
time: '02:00'
interval: "monthly"
day: "thursday"
time: "02:00"
open-pull-requests-limit: 10
groups:
aws:
Expand All @@ -15,7 +15,7 @@ updates:
actix:
patterns: ["actix*"]

- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: 'monthly'
interval: "monthly"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: cargo build

- name: Check that we didn't introduce native ssl
run: '! ldd ../target/debug/svanill-vault-cli | grep -q libssl'
run: "! ldd ../target/debug/svanill-vault-cli | grep -q libssl"

- uses: actions-rs/cargo@v1
with:
Expand All @@ -66,7 +66,7 @@ jobs:
id: metadata
uses: dependabot/fetch-metadata@v2.2.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr merge --auto --rebase "$PR_URL"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-depth: "0"

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-depth: "0"

- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-depth: "0"

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand Down
127 changes: 104 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion svanill-vault-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reqwest = { version = "0.11.27", default-features = false, features=["blocking",
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.138"
confy = "0.6.1"
rand = "0.8.5"
rand = "0.9.0"
md-5 = "0.10.6"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions svanill-vault-cli/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ pub fn gen_random_filename() -> String {
0123456789";

const FILENAME_LEN: usize = 24;
let mut rng = rand::thread_rng();
let mut rng = rand::rng();

(0..FILENAME_LEN)
.map(|_| {
let idx = rng.gen_range(0..CHARSET.len());
let idx = rng.random_range(0..CHARSET.len());
CHARSET[idx] as char
})
.collect::<String>()
Expand Down
Loading