On 18 April 2018 at 11:36, Gertjan van den Burg wrote:
| While waiting to get this message posted to the list, I've solved the 
| problem by copying the stdlib rand() and srand() functions into my 
| package under a different name. This makes the check pass and ensures my 
| RNG does not interfere with R's RNG.

I recommend against that. The check, while dated, is valid because many (old)
implementations of rand and srand were of (now known) poor quality.

You have R, you should use its RNGs. Your users may expect that. Accessing eg
runif is easy and documented, and we can trust the RNG behind it.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to