Way to interface with Intel's new DRNG (RDRAND

2019-06-18 22:38发布

问题:

I'm looking to consume Intel's Digital Random Number Generator (the RDRAND instruction in Ivy Bridge) from a C# assembly. I've looked at cpp libs but I was hoping there was a more "managed" solution. Any ideas?

回答1:

The best I can find is here:

  • Rdrand manual and library (Windows* version)
  • Rdrand manual and library (Linux* and OS X* version)

You can download and compile (link, etc) your own. If you know someone who knows C++, write some extern methods for P/Invokes from C#.