Skip to content
Open
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
50 changes: 25 additions & 25 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 crates/stdarch-gen-loongarch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rand = "0.8.5"
rand = "0.9.3"
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default-run = "hex"
[dependencies]
core_arch = { path = "../crates/core_arch" }
quickcheck = "1.0"
rand = "0.8"
rand = "0.9.3"

[[bin]]
name = "hex"
Expand Down
4 changes: 2 additions & 2 deletions examples/connect5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#![cfg_attr(target_arch = "x86_64", feature(stdarch_internal))]
#![feature(stmt_expr_attributes)]

use rand::rng;
use rand::seq::SliceRandom;
use rand::thread_rng;

use std::cmp;
use std::time::Instant;
Expand Down Expand Up @@ -374,7 +374,7 @@ impl List {
}

pub fn shuffle(&mut self) {
let mut rng = thread_rng();
let mut rng = rng();
let num = self.p_size as usize;

self.p_move[..num].shuffle(&mut rng);
Expand Down
Loading