[Tinyos-help] how to get real randomness in Random.rand()

Pacionet pacionet at email.it
Mon Sep 26 07:18:16 PDT 2005

I notice that when I restart application Random.rand() produces the same
sequence . Do exist a trick to get real randomness or \"almost real\"
randomness ?
Something like :

r = call Random.rand();
s= r  XOR LocalTime.read();

where XOR is the logic XOR (I don\'t remember : is it the  \" | \" ?) and
LocalTime.read() gets the current system time ? 
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 vieni a conoscere le 2000 aziende del Canavese, prodotti e servizi dal
settore alimentare fino a quello tessile 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3608&d=20050926

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20050926/caf74aea/attachment.htm

More information about the Tinyos-help mailing list