* [U-Boot] Random number generator - why I need it
@ 2014-07-18 14:41 Stanislav Vlasic
2014-07-18 18:54 ` Jeroen Hofstee
0 siblings, 1 reply; 2+ messages in thread
From: Stanislav Vlasic @ 2014-07-18 14:41 UTC (permalink / raw)
To: u-boot
Hi,
I'm using customized U-Boot 2011.03 (for Amlogic platform).
What I need is solution for getting random number (on first boot) which
will be written to ubootenv. Let's say I have 100 strings stored in string
array of board file.
On first boot I have to pick one random string from list and write it to
ubootenv (range 0..99). Writing to ubootenv is not problem, problem is
randomization. My current tries ended up in getting same number each time
(2 different algorithms). Does anyone have solution for this?
Keep in mind that my PCB does not have RTC battery and does not store time,
so on each power on clock is back to default (1970).
Thanx and best regards,
Stanislav Vlasic
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-18 18:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 14:41 [U-Boot] Random number generator - why I need it Stanislav Vlasic
2014-07-18 18:54 ` Jeroen Hofstee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox