On Feb 12, 2007, at 1:04 AM, Urs Hunkeler wrote:
Phil,
It seems that Mino used different seeds. Looking at the output Mino
posted I get the impression that the order of the numbers is
different, but that the numbers always stay the same. This would
mean that the PRNG produces a limited set of numbers, which seems
to be a bit odd.
That's the random seed to *TOSSIM*, not to the mote random number
generators. The mote generators behave exactly as they do on real nodes:
RandomMlcgP.nc:
/* Initialize the seed from the ID of the node */
command error_t Init.init() {
atomic seed = (uint32_t)(TOS_NODE_ID + 1);
return SUCCESS;
}
So giving a random seed to TOSSIM will introduce randomness, such as
in the order you boot nodes, but the stream of random numbers each
node generates is deterministic.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help