Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Generating pure randomness with a PC

Generating pure randomness with a PC

Scheduled Pinned Locked Moved Hardware & Devices
hardware
5 Posts 5 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ron Waller
    wrote on last edited by
    #1

    I'm wondering if it is possible to generate pure randomness with a typical PC. I'm thinking there might be hardware within the PC that runs at different clock frequencies with electronic variances that can be used to generate a stream of pure randomness.

    M D N 3 Replies Last reply
    0
    • R Ron Waller

      I'm wondering if it is possible to generate pure randomness with a typical PC. I'm thinking there might be hardware within the PC that runs at different clock frequencies with electronic variances that can be used to generate a stream of pure randomness.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      I think "generate pure randomness" is an oxymoron. The best you can do is use a source that is highly variable and not predictable. APIs like CryptGenRandom() sample dozens of system parameters to come up with a source that changes so much as to make it unpredictable. Or you could rig up something similar to LavaRand. ;) --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ Laugh it up, fuzzball.

      1 Reply Last reply
      0
      • R Ron Waller

        I'm wondering if it is possible to generate pure randomness with a typical PC. I'm thinking there might be hardware within the PC that runs at different clock frequencies with electronic variances that can be used to generate a stream of pure randomness.

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #3

        No, you'd need external hardware to do this. The built in sensors are only sensitive enough to detect problems, not record pure noise like you'd need for a RNG.

        1 Reply Last reply
        0
        • R Ron Waller

          I'm wondering if it is possible to generate pure randomness with a typical PC. I'm thinking there might be hardware within the PC that runs at different clock frequencies with electronic variances that can be used to generate a stream of pure randomness.

          N Offline
          N Offline
          Niklas Ulvinge
          wrote on last edited by
          #4

          One way, that I've seen other site's recomend, is to play some noise in the speakers, then record the sound with a microfone. Then you'll get something very close to random. The one and only Niklas Ulvinge aka IDK

          B 1 Reply Last reply
          0
          • N Niklas Ulvinge

            One way, that I've seen other site's recomend, is to play some noise in the speakers, then record the sound with a microfone. Then you'll get something very close to random. The one and only Niklas Ulvinge aka IDK

            B Offline
            B Offline
            badal_akr
            wrote on last edited by
            #5

            If you want to generate randomness interms of numbers, then you can add some huge numbers and make overflow in the register. The generated number everytime will be the random number Anil Kumar

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups