We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ada41a commit 1705b40Copy full SHA for 1705b40
src/rdrand.rs
@@ -23,7 +23,7 @@ const WORD_SIZE: usize = mem::size_of::<u64>();
23
#[target_feature(enable = "rdrand")]
24
unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
25
for _ in 0..RETRY_LIMIT {
26
- let mut el = mem::uninitialized();
+ let mut el = mem::zeroed();
27
if _rdrand64_step(&mut el) == 1 {
28
// AMD CPUs from families 14h to 16h (pre Ryzen) sometimes fail to
29
// set CF on bogus random data, so we check these values explictly.
0 commit comments