Results 1 to 8 of 8

Thread: Hardware Random Number Generator - ubld.it TrueRNG v3

Threaded View

  1. #1

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Hardware Random Number Generator - ubld.it TrueRNG v3

    Several weeks ago I purchased a Hardware Random Number Generator from ubld.it. Since then I have been working on a class that implements the device. This class should work on any serial port device that sends a steady stream of random numbers. To get the device to work I had to install this driver, http://ubld.it/wp-content/uploads/20...ws-Driver1.zip

    If you don't have a device you can still use the random methods by instantiating the class with a buffer of random bytes.

    Code:
                Private WithEvents TRNG As RandomTrueRNG
    
                Dim PRNG As New Random
                Dim byts((1024 * 1024 * 20) - 1) As Byte
                PRNG.NextBytes(byts)
                TRNG = New RandomTrueRNG(byts)
    Before I had the device I used this to begin development. I modeled the Random methods on System.Random and added several of my own, like Next.Date.

    Here is the class in a text file, as a link to my Google Drive. The class.

    Let me know if you have a problem with it.

    I have a demo app that I will post later. This is what it looks like.

    Name:  TrueRNG.jpg
Views: 584
Size:  49.0 KB

    Enjoy.
    Last edited by dbasnett; Jan 1st, 2024 at 08:18 AM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width