Number theorists, this one's for you!
I have been watching a college lecture series on cryptography, by a professor, named Christof Paar, at the University of Bochum, Germany. In one of his lectures, he goes into detail about the internal workings of PRNGs and TRNGs (Pseudo-random number generators, and Truly-random number generators, respectively), how they're implemented, and so on and so forth.
Being the curious person that I am, I'm looking to create my own TRNG. The problem with this is, I need an outside source of data, that is fundamentally unpredictable. Since I don't have a spare geiger counter and some uranium laying around, nor do I have any equipment to measure atmospheric noise, I thought I would use something a little easier to measure, electric current.
As you may have inferred from the title of my post, the source of the electric current that I thought I might use is my very own PSU (The 5v rail, in particular).
I have noticed, based on a graph that I generated over about a 2-minute span, using HWMonitor, that the voltage output bounces between 5.00 volts and 5.04 volts, at seemingly random intervals. While two minutes is probably not long enough to arrive at a definitive answer, it illustrates the point I am trying to get at.
--Click here for graph--
Cue questions:
Thanks in advance,
Gabis
I have been watching a college lecture series on cryptography, by a professor, named Christof Paar, at the University of Bochum, Germany. In one of his lectures, he goes into detail about the internal workings of PRNGs and TRNGs (Pseudo-random number generators, and Truly-random number generators, respectively), how they're implemented, and so on and so forth.
Being the curious person that I am, I'm looking to create my own TRNG. The problem with this is, I need an outside source of data, that is fundamentally unpredictable. Since I don't have a spare geiger counter and some uranium laying around, nor do I have any equipment to measure atmospheric noise, I thought I would use something a little easier to measure, electric current.
As you may have inferred from the title of my post, the source of the electric current that I thought I might use is my very own PSU (The 5v rail, in particular).
I have noticed, based on a graph that I generated over about a 2-minute span, using HWMonitor, that the voltage output bounces between 5.00 volts and 5.04 volts, at seemingly random intervals. While two minutes is probably not long enough to arrive at a definitive answer, it illustrates the point I am trying to get at.
--Click here for graph--
Cue questions:
- Based on the graph, linked above, is there a possibility that the data captured by HWMonitor could be used to generate random bits?
- Also based on the graph, would using the change in voltage generate enough entropy to be considered "Truly random"?
- Aside from using a 3rd party application, like HWMonitor, is there a way to read sensor output, using C/C++, or a similar O.O. language?
Thanks in advance,
Gabis