Skip to content

Commit

Permalink
fix to use rand::rngs::OsRng instead
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
  • Loading branch information
bluele committed Nov 18, 2024
1 parent 881682d commit 8ec8a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/remote-attestation/src/ias_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub(crate) fn get_quote(
spid: sgx_spid_t,
) -> Result<(Vec<u8>, sgx_report_t), Error> {
let mut quote_nonce = sgx_quote_nonce_t { rand: [0; 16] };
rand::thread_rng().fill_bytes(&mut quote_nonce.rand);
rand::rngs::OsRng.fill_bytes(&mut quote_nonce.rand);

let (p_sigrl, sigrl_size) = if sigrl.is_empty() {
(ptr::null(), 0)
Expand Down

0 comments on commit 8ec8a17

Please sign in to comment.