6

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?

Garen
  • 941
  • 2
  • 9
  • 20
Jeff
  • 2,701
  • 2
  • 22
  • 35
  • 2
    http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2617425-provide-support-for-the-new-rdrand-instruction-for – IAbstract Mar 28 '13 at 20:22
  • I understand your position on this not following SO guidelines but it's a useful question with a useful answer. It seems like a less-destructive fix would have been to slightly reword the question. I notice some of your own questions have been closed for similar reasons so I suspect you know how frustrating that is. – Jeff Jul 17 '13 at 13:28
  • Since there appears to be continued interest in this, check out: http://blog.viathefalcon.net/2012/10/03/using-intels-secure-key-rdrand-in-ms-visual-c-2010/ – Jeff Sep 30 '13 at 22:14

1 Answers1

1

The best I can find is here:

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#.

IAbstract
  • 19,551
  • 15
  • 98
  • 146
  • Yeah, I know C++ I'm just lazy :) – Jeff Mar 28 '13 at 21:15
  • Actually, I'm lazy and the only published libraries appear to be compiled with Intel and I'm having trouble linking to them with Visual Studio. – Jeff Mar 28 '13 at 21:23