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
62 changes: 2 additions & 60 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions examples/mem-alloc-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rand = "0.8.4"
rand = "0.8.6"
num_cpus = "1.14.0"

[package.metadata.fortanix-sgx]
# heap size (in bytes), the default heap size is 0x2000000.
heap-size=0x4000000
debug=false
debug=false
2 changes: 1 addition & 1 deletion examples/mem-correctness-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false

[dependencies]
crossbeam = "0.8.4"
rand = "0.8.4"
rand = "0.8.6"
num_cpus = "1.14.0"
sha2 = "0.10"

Expand Down
2 changes: 1 addition & 1 deletion fortanix-vme/fortanix-vme-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ futures = "0.3"
log = "0.4.21"
nitro-cli = { git = "https://github.com/aws/aws-nitro-enclaves-cli.git", rev = "v1.4.2" }
nix = { version = "0.30.0", features = ["fs", "ioctl", "socket"] }
rand = "0.7.3"
rand = "0.10"
serde_cbor = { version = "0.11" }
sev = { version = "8.0.0", features = [
"snp",
Expand Down
4 changes: 2 additions & 2 deletions fortanix-vme/fortanix-vme-runner/src/platforms/amdsevsnp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use nix::fcntl::{open, OFlag};
use nix::sys::stat::Mode;
use nix::unistd::close;
use nix::Error;
use rand::{self, Rng};
use rand::{self, RngExt};
use std::borrow::{Borrow, Cow};
use std::os::fd::{AsRawFd, OwnedFd};
use std::path::PathBuf;
Expand Down Expand Up @@ -150,7 +150,7 @@ const CID_START: u32 = 1024;
// tries to allocate a cid number. If allocation succeeds
// we simply re-use it along with the file descriptor.
fn get_available_guest_cid_with_fd() -> Result<VsockConfig, RunnerError> {
let random_start = rand::thread_rng().gen_range(CID_START, u32::MAX);
let random_start = rand::rng().random_range(CID_START..u32::MAX);
for cid in (random_start..u32::MAX).chain(CID_START..random_start) {
// set_guest_cid expects u64 due to underlying ioctl call.
let cid = cid as u64;
Expand Down
2 changes: 1 addition & 1 deletion intel-sgx/async-usercalls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ crossbeam-channel = "0.5" # MIT/Apache-2.0
fnv = "1.0" # MIT/Apache-2.0

[dev-dependencies]
rand = "0.8"
rand = "0.8.6"

[build-dependencies]
rustc_version = "0.4.1" # MIT/Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion intel-sgx/insecure-time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spin = { version = "0.11", default-features = false, features = ["rwlock", "mute


[dev-dependencies]
rand = "0.8"
rand = "0.8.6"
clap = { version = "4.4", features = ["derive"] }
crossterm = "0.29"

Expand Down
Loading