|
|
|
|
|
by dragontamer
2431 days ago
|
|
> Why would anyone use rdrand directly? Indeed, because RDSEED is actually what most people want anyway. Its an assembly instruction that gets the job done. People should be expecting that the assembly instructions of their CPUs work as intended. No different than using AVX-intrinsics or hand-crafted assembly in x264 / x265 code. In any case, RDSEED is the assembly instruction for gathering entropy (aka: setting a random number generator should use RDSEED), while RDRAND is an older assembly instruction for purely getting a cryptographic random number. Its slightly different amounts of entropy involved in RDSEED vs RDRAND. So this is a very subtle issue that requires a lot of understanding of the x86 assembly instruction set. But if you understand these details, then by golly you should use the instructions! |
|