Using the Intel Digital Random Number Generator with Visual Studio

Аватар автора
Interior Design Ideas
I needed to have a more random number source than the psuedo-random number generator that is a part of the C libraries. The Intel processors have a hardware random number generator built in. To use it there&a bit of assembler code that has to be written. Here I go through the process of using it. Some assembler code has to be written for it, but it¬ a lot. The assembler coded needed to actually retrieve a number from the DRNG (Digital Random Number Generator) is only a few lines long. Here it is. RandomNumber proc RDRAND RAX ret; RandomNumber endp But how do you call this from C/C++? How do you know that the processor actually contains a DRNG? I address both of these within the video. In the general case scenario I don&suggest the use of assembler. But if it is something in which you are interested here are a few resources for getting started. (Affiliate Links). modern x86 assembler Begining x86 Assembler Low Level Programming

0/0


0/0

0/0

0/0