Electronics > Beginners

Random Seed using Micro controller floating pin

<< < (2/2)

T3sl4co1l:
Add to the list of sources: different clock generators.  A classic is measuring the internal RC oscillator to an external crystal oscillator, or really anything else of reasonably known frequency will do.  Sampling one with the other using the capture input, take the LSBs off the count and use that.

Ambient electric fields are a poor source because they're basically mains 50/60Hz, potentially very predictable, also easily manipulated as mentioned.

In general, any source of modest entropy can be used (like these examples), and the resulting bit streams can be "pooled" into a common, higher rate bit stream.  This should then be sent into a scrambling function, like an LFSR or hash function, which generates a balanced 50% output and makes it difficult to predict the output, even if the inputs are known.  Then you sample the statistically clean output and generate dice rolls. :)

Tim

soldar:

--- Quote from: T3sl4co1l on January 31, 2019, 03:54:29 pm ---Add to the list of sources: different clock generators.  A classic is measuring the internal RC oscillator to an external crystal oscillator, or really anything else of reasonably known frequency will do.  Sampling one with the other using the capture input, take the LSBs off the count and use that.

Ambient electric fields are a poor source because they're basically mains 50/60Hz, potentially very predictable, also easily manipulated as mentioned.

In general, any source of modest entropy can be used (like these examples), and the resulting bit streams can be "pooled" into a common, higher rate bit stream.  This should then be sent into a scrambling function, like an LFSR or hash function, which generates a balanced 50% output and makes it difficult to predict the output, even if the inputs are known.  Then you sample the statistically clean output and generate dice rolls. :)

Tim

--- End quote ---
IMHO for a 1/6 die no high-quality random generator is needed. Take a divide by 6 counter and a fast-enough pulse stream and that is pretty much all you need.

At 60 Hz you would need to be able to release the button with a precision of 1/60 sec and that is assuming you could see the display which can easily be prevented. That is plenty enough IMHO. But, OK, want more? Use a 60 KHz oscillator. There ain't no one in the world who can time their push of a button with that precision. OK, make it 600 KHz.

iMo:

--- Quote ---My question is, am I insane or did I get lucky?
--- End quote ---
You did get lucky.
Generating random events/numbers is rocket science. There is only one true random generator known today, afaik - the radioactive decay.

soldar:

--- Quote from: imo on January 31, 2019, 06:33:21 pm ---
--- Quote ---My question is, am I insane or did I get lucky?
--- End quote ---
You did get lucky.
Generating random events/numbers is rocket science. There is only one true random generator known today, afaik - the radioactive decay.

--- End quote ---
I disagree as explained in my previous post.

Domagoj T:
I'll just leave this here:

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod