XeroX

Member
Hello,
I recently committed an update to the hardware random number generator. This works great for Intel and should work for AMD too. The update was necessary as the old RDRAND implementation wasn't the latest code and required windows7sdk.

Latest code for drng32.dll and/or drng64.dll can be found here:
https://github.com/Xeroxxx/libdrng-1.0

Is anyone willing to verify if this works with amd processors starting Jaguar/Puma platform?

Greetz
 
Sending pull request for linux support this weekend.

Capture.PNG

Code:
      if (Core.Unix && Core.Is64Bit && File.Exists("libdrng.so"))
       {
         _Random = new RDRand64();
       }
       else if (Core.Unix && File.Exists("libdrng.so"))
       {
         _Random = new RDRand32();
       }
       else if (Core.Unix)
       {
         _Random = new SimpleRandom();
       }
       else if (Core.Is64Bit && File.Exists("drng64.dll"))
       {
         _Random = new RDRand64();
       }
       else if (!Core.Is64Bit && File.Exists("drng32.dll"))
       {
         _Random = new RDRand32();
       }
       else
       {
         _Random = new CSPRandom();
       }

       if (_Random is IHardwareRNG)
       {
         if (!((IHardwareRNG)_Random).IsSupported())
         {
           _Random = new CSPRandom();
         }
       }

https://github.com/Xeroxxx/libdrng-1.0
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back