File: test_x86_rdrand.cpp

package info (click to toggle)
libcrypto%2B%2B 8.9.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,960 kB
  • sloc: cpp: 110,116; asm: 10,493; sh: 8,937; makefile: 55
file content (10 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#include <immintrin.h>
#if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))
# include <x86intrin.h>
#endif
int main(int argc, char* argv[])
{
    unsigned int x=0;
    (void)_rdrand32_step (&x);
    return x == 0 ? 0 : 0;
}