Hi,
As far as the Python script is concerned, I'm at a loss since I don't
work with Python.
Are you sure the simulation is not reproducible? I mean, are you
inducing failures, etc. How about not inducing any failures at all, and
checking? Because, if the induced failure is off by even a second, the whole
trace file changes.
Regards,
Bharat.
On Thu, Jul 23, 2009 at 1:31 PM, Yee Wei Law <[email protected]> wrote:
> Hi Bharat, thank you for your reply. However, I'm still not sure, what
> exactly is the code/function/API to use? What am I missing in my Python
> script?
>
> Regards,
> Yee Wei
>
> 2009/7/23 bharat naik <[email protected]>
>
> Hi,
>>
>> I had a similar problem. I was running TOSSIM in one shell with a
>> particular seed and then started Tython, which seemed to start with another
>> seed.
>> However, I don't think the seed changes. I ran one simulation (with
>> seed = 86734), started Tython (which picked a random seed)and let it run.
>> Then, I repeated the process. This time Tython picked another seed, however,
>> I chose the same seed i.e. 86734 for running the simulation. I made a "diff"
>> of the two trace files generated and they turned out to be same. You could
>> try this method out and see if it works, it worked for me.
>>
>> Regards,
>> Bharat.
>>
>> Hi all,
>>>
>>> I have been trying to make TOSSIM runs reproducible. Apparently the
>>> following Python code does not achieve that:
>>>
>>> t = Tossim([])
>>> t.randomSeed(33947) # arbitrary seed
>>>
>>> Maybe it's obvious, but I don't know what I'm missing. This is starkly
>>> different from OMNeT++ where nothing needs to be done for the simulations to
>>> be reproducible.
>>>
>>> Hope to get some tips from the experts. Thank you in anticipation.
>>>
>>> Regards,
>>> Yee Wei
>>>
>>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help