Author Topic: Working example of RDRAND.  (Read 223 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4922
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Working example of RDRAND.
« on: August 07, 2017, 02:01:19 PM »
The talk around the internet is that RDRAND is suspect due to some dirty deal with the American NSA but the results perform reasonably well. It is not as fast as a software random generator but its ENT results are in the respectable class so its not without its uses. For non-cryptographic applications the results should be highly useful and for the crypto folks it produces enough high quality random results to at least make a decent and probably impossible to reproduce seeding mechanism for a faster software random generator.

File should build with the most recent libraries and macro file. The test piece tests if the processor supports RDRAND and will show an error message it if it is not supported.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin: