[Tinyos-help] how to use ParameterInit<uint16_t>

Hazem Al- Ojeh hazem.alojeh at student.adelaide.edu.au
Sun Jun 1 01:10:32 PDT 2008



Hi all,

Can anyone please tell me how to use ParameterInit<uint16_t> interface?
I am trying to generate random numbers, and I am using RandomMlcgC. My problem
is that I don't know how to use this. Earlier I was using RandomC and I had a
method which looks like the following:
	uint16_t generate_random(){
		rand = call Random.rand16();
		return rand;
	}

However, because that always results the same sequence of numbers, I decided to
use ParameterInit<uint16_t> but unsure about how to use it! I appreciate any
suggestions..

Thank you.


More information about the Tinyos-help mailing list