Re: [R-pkg-devel] Managing RNG in C code

2015-06-05 Thread Charles Geyer
ct so the user does not have to. As with many problems, the right answer is don't do that! Message: 1 > Date: Thu, 4 Jun 2015 19:47:27 +0200 > From: Guillaume Chapron > To: r-package-devel@r-project.org > Subject: [R-pkg-devel] Managing RNG in C code > Message-ID: > Content-

[R-pkg-devel] Managing RNG in C code

2015-06-04 Thread Guillaume Chapron
Hello, I am working on a package where I am passing some computations from R to C and back. The C code runs many stochastic trajectories of a population model (with the RNG from R through multiple calls to GetRNGstate and PutRNGstate). I would like that each trajectory has its own seed. My pr