We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc453d9 + 7fb17d8 commit e89bd8cCopy full SHA for e89bd8c
src/libstd/sys/sgx/mod.rs
@@ -3,8 +3,6 @@
3
//! This module contains the facade (aka platform-specific) implementations of
4
//! OS level functionality for Fortanix SGX.
5
6
-#![allow(deprecated)]
7
-
8
use crate::io::ErrorKind;
9
use crate::os::raw::c_char;
10
use crate::sync::atomic::{AtomicBool, Ordering};
@@ -142,7 +140,7 @@ pub unsafe extern "C" fn __rust_abort() {
142
140
pub fn hashmap_random_keys() -> (u64, u64) {
143
141
fn rdrand64() -> u64 {
144
unsafe {
145
- let mut ret: u64 = crate::mem::uninitialized();
+ let mut ret: u64 = 0;
146
for _ in 0..10 {
147
if crate::arch::x86_64::_rdrand64_step(&mut ret) == 1 {
148
return ret;
0 commit comments