Open tdhock opened 3 years ago
(base) tdhock@maude-MacBookPro:~/R/RcppDeepState$ valgrind --version
valgrind-3.13.0
It is the issue with the seed value we provided. DeepState makes use of srand (standard C random number generator library) that's not guaranteed to be consistent across platforms.
The inputs generated by the seed 1603403708 are different in my laptop which caused an InvalidWrite(write_index_outofbound.cpp : 8) error whereas the inputs generated by 1603403708 are different in your platform which produced an Leak_DefinitelyLost(write_index_outofbound.cpp : 7).
The only way we can rectify this is by implementing our own pseudo-random number generators that are cross-platform consistent. There is an issue raised with the deepstate for this https://github.com/trailofbits/deepstate/issues/364.
Maybe I'll provide a note saying that the seed value is different across the platforms and the output may vary.
I ran the example on the README and I got the following, which is different from what you show on the README.