stream-cipher

Is there any legitimate use for Intel's RDRAND?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 12:45:20
问题 Today I thought: well, even if there is great suspicion on RDRAND implementation of NIST SP 800-90A, it is still a hardware implementation of pseudo-random number generator (PRNG) that must be good enough for non-sensitive applications. So I thought of using it on my game instead of Mersenne Twister. So, to see if there was any performance gain on using the instruction, I compared the time of the two following codes: // test.cpp #include <cstdio> int main() { unsigned int rnd = 0; for(int i =