Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Random Number Generator

2011-01-10 by Ken Holt

Or, if a battery is used for VCC: every time you'd like a new 8 bit
seed for the code PN, read your battery voltage 8 times with the
10 bit ADC, use the LSB of each read to construct the seed.
No extra external parts!


David VanHorn wrote:
>
> When I hear the word "Random", I get nervous.
>
> One version of "Random" actually means "Unpredictable". Thermal
> noise, radioactive decay.. Useful for cryptographic one time pads.
> The other actually means "Gaussian". PN sequence, etc.
>
> For a dice app, I'd use a long PN generator clocked on each iteration
> through the main loop (or idle) and then grab the output whenever the
> dice are "rolled", such that the register is clocked far more
> frequently than it is used.
>
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.