Im trying to generate random number by these:
uint32_t rnd;
uint32_t max = 65536;
__asm {
mov eax, 0
rdrand ax
mov rnd, eax
fldz
fiadd dword ptr rnd
fidiv dword ptr max
}
Problem is, visiual studio is saying that rdrand is illegal. How can i solve this ? Im using x86 intel pentium instruction codes. Thanks