/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / How to get random entropy for use as a random seed (Primer2)

Username:     
Password:     
             

Forum
  • Index
  •  » circleOS
  •  » How to get random entropy for use as a random seed (Primer2)

# 1   2009-04-27 18:19:23 How to get random entropy for use as a random seed (Primer2)

KPexEA
Member
From: Vancouver, BC, Canada
Registered: 2009-04-24
Posts: 12

How to get random entropy for use as a random seed (Primer2)

I would like to seed my random number generator with some random entropy. I can use the hours / minutes / seconds from the RTC, are there any other values that I can use that are directly accessible from the CircleOS API?

Thanks
Kevin

Offline

 

# 2   2009-04-28 06:57:37 How to get random entropy for use as a random seed (Primer2)

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: How to get random entropy for use as a random seed (Primer2)

RTC is good, and you could get also a few random bits (let's  say the LSBs) from the measurement of the analog values (temperature, battery voltage,...).

Offline

 

  • Index
  •  » circleOS
  •  » How to get random entropy for use as a random seed (Primer2)

Board footer