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