| New Reply |
Algorithms and Sources of entropy for PRNG and TRNG? |
Share Thread | Thread Tools |
| Dec12-12, 10:53 PM | #1 |
|
|
Algorithms and Sources of entropy for PRNG and TRNG?
Hi PF,
I would like to implement different random number generators using AVR microcontroller (both PRNG and TRNG). So I would like to get suggestions about different sources of entropy for TRNG and algorithms for PRNG. Also wanted to test the randomness. And What is chaos theory? Is it applicable for random number generation? Can I implement a chaos circuit for random number generator? TIA -Devanand T |
| Dec12-12, 11:48 PM | #2 |
|
|
need to define some acronyms. i know a bit about generating random numbers but dunno what the "P" or the "T" is.
|
| Dec13-12, 12:17 AM | #3 |
|
|
ok here goes... PRNG - pseudo random number generator. (algorithms)
TRNG - true random number generator. (hardware generator) |
| Dec13-12, 07:34 AM | #4 |
|
|
Algorithms and Sources of entropy for PRNG and TRNG?
You can build something with known jitter/instability and read from that. Example: http://electronics.stackexchange.com...crochip-pic24f
|
| Dec13-12, 10:36 PM | #5 |
|
|
or is a TRNG an A/D converter that samples the noise from a noisy diode or resistor or some other noisy analog part? that might be fully unpredictable, in contrast to an algorithm. |
| Dec13-12, 10:47 PM | #6 |
|
|
okay, if you use that, and if the biasing scheme works as planned, then you should have some random bits coming out of that. there isn't a clock in the circuit, so i do not know how fast the bits might be toggling back and forth. i can't say that they bits would be good and white because of that capacitor makes for a high-pass filter (a differentiator). so, if i understand it right, whatever is the value of the previous bit, the current bit will more likely be the complement than the same value. that's what high-pass noise is. if it were white, then the likelihood of the current bit being "1" is 50% no matter what the value of the previous bit was. |
| Dec13-12, 10:47 PM | #7 |
|
|
PRNGs are simply algorithms that eventually repeat. If you know the seed value, then you know all the random numbers it will generate when called, and in what order. The difference between a good and bad PRNG is life and death to encryption, since the most secure encryption (a one time pad) depends entirely on the randomness of the keystream. |
| Dec14-12, 08:25 PM | #8 |
|
|
Physical random generators tend to be very bad. They have bias like 1% or 0.1% which makes them totally unusable as is in cryptography, which wants 10-9 to the very least.
So the next step is to hash by software the physical signal, and then you can begin to wonder if the physical source is really that useful. Practical crypto programs use physical randomness only as seed for software random generators. Good choice. |
| Dec14-12, 09:20 PM | #9 |
|
|
However, dedicated hardware RNGs are both fast and random. Their downside is simply that they are expensive (unless you DIY). |
| Dec15-12, 12:37 AM | #10 |
|
|
guy, i think that Enthalpy is completely correct.
|
| Dec15-12, 09:10 AM | #11 |
|
|
This describes a similar process: https://www2.lirmm.fr/lirmm/interne/...LES/11.4_1.pdf http://users.wpi.edu/~martin/MQP/edwardsetal.pdf |
| Dec15-12, 09:27 AM | #12 |
|
|
This one could be quite cool: http://warmcat.com/_wp/whirlygig-rng/ It passes the dieharder suite so there is definitely no bias and it has high quality randomness, but it is not clear to me if it is truly impossible to find a statistical model to kill it.
|
| Dec17-12, 09:49 PM | #13 |
|
|
http://people.csail.mit.edu/devadas/pubs/puf-dac07.pdf |
| New Reply |
| Thread Tools | |
Similar Threads for: Algorithms and Sources of entropy for PRNG and TRNG?
|
||||
| Thread | Forum | Replies | ||
| is a PRNG possible? | General Math | 1 | ||
| probabilistic algorithms vs. deterministic algorithms | Linear & Abstract Algebra | 0 | ||
| Probabilistic complexity classes and acceptable sources of entropy | Set Theory, Logic, Probability, Statistics | 0 | ||
| Finding a PRNG's formula , according to numbers | Calculus | 0 | ||
| PRNG vs CSPRNG | Linear & Abstract Algebra | 0 | ||