summaryrefslogtreecommitdiff
path: root/TestPrograms/test_x86_rdseed.cpp
blob: 172cde95a242d4dc462cedb6167da73e95b0a62e (plain)
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)_rdseed32_step (&x);
    return x == 0 ? 0 : 0;
}