Benign crates 41,903,792 installs Download

rdrand 0.1.0

“An implementation of random number generator based on rdrand and rdseed instructions”

Rust asm! inline assembly macro
SHA-25661cf0eced618d610070c08c87dc4116e81e30518fc9b1d0f0901b04e2b17108c
MaleculeH(Mg)

Evidence

Rust asm! inline assembly macro util.rs · lines 23–28
23:8… let (mut a, mut b, mut c, mut d);
24 unsafe {
25 asm!("cpuid"
26 :"={eax}"(a), "={ebx}"(b), "={ecx}"(c), "={edx}"(d)
27 :"{eax}"(ain), "{ecx}"(cin)
28 …
Rust asm! inline assembly macro lib.rs · lines 58–67
58:21… &self) -> T {
59 let mut var;
60 unsafe {
61 asm!("1: rdrand $0; jnc 1b;" : "=r"(var));
62 }
63 var
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.