How to get a true random number to srand()?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I need to obtain different pseudorandom sequence for each power-on my device without adding external components into the circuit.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Stealing Proteus doesn't make you an engineer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

cool! thanks a lot!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try reading the ADC 16 times, taking the LSB from each read and shifting it into a 16-bit value for srand.