Created
November 2, 2019 05:02
-
-
Save enh/4142e30bf8f464810848c7b7743ba16b to your computer and use it in GitHub Desktop.
Show RDRAND results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cc -mrdrnd rdrand.c -o rdrand && ./rdrand | head | |
#include <stdio.h> | |
void main() { | |
while (1) { | |
unsigned long long v; | |
int i = __builtin_ia32_rdrand64_step(&v); | |
printf("%d %#8llx\n", i, v); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment