Re: [Tinyos-help] help-for seting random seed

2011-05-09 Thread jiasheng yao
Thank you very much for your help.I solved my problem successfully by your way. 在 2011年5月8日 下午10:05,jiasheng yao jiashengyao1...@gmail.com写道: Hello, I'm writing to you because I want to find out how to set random seed for tinyOS 1.x.I look at Random interface file, only the init function in

[Tinyos-help] help-for seting random seed

2011-05-08 Thread jiasheng yao
Hello, I'm writing to you because I want to find out how to set random seed for tinyOS 1.x.I look at Random interface file, only the init function in it , not with theparameters. So I do not how to set the seed and hope to get your help.Thank you. Best regards, jsyao

Re: [Tinyos-help] help-for seting random seed

2011-05-08 Thread Michael Schippling
Looks like, as it is designed, you can't You could modify the interface to add a seed to init(), or an srand() method. The file tos/system/RandomLFSR.nc implements it and it would be a simple fix. If you are going to update your TOS version to some other 1.x level you can put your new files