.global randcrypto_get_physrand randcrypto_get_physrand: mov $100, %ecx xor %eax, %eax .retry: rdrand %eax jc .done loop .retry .fail: mov $-1, %eax .done: ret