-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State of RNG not taken into account in RFunctions ? #18
Comments
Yep, this is a problem since we've split out the Rmath library. I think the best solution here is to modify our Rmath-julia build to allow custom function pointers to the Julia RNG. |
Can you try a And if it doesn't, what does |
Hello,
|
Okay, what does: using Rmath
Rmath.libRmath give? |
And also, what is your |
|
@tkelman Is there any way we can force a rebuild here? |
can delete |
thanks, I have a computation running so I'll try as soon as I'm done |
Picking up |
I am using Ubuntu 14.04, installed julia from the ppas staticfloat/juliareleases and staticfloat/julia-deps ppa |
You should probably switch to the generic Linux binaries, the ubuntu PPA might not be maintained indefinitely. |
Thanks, I'll do just that |
I would think that version of libRmath-julia should be linked against dsfmt and have the patches from Julia though, so I'm not entirely sure what's going on. Switching to the generic Linux binaries may not change this, or you might need to uninstall some of the julia-deps packages to get this package to use a different build of the rmath library. If there's a way of telling apart a version of libRmath-julia that will work correctly for this package vs one that will not, we can add validation hooks to the bindeps script so it won't use builds that won't work correctly. |
If before reinstalling julia from the generic linux binaries I save the Is there a smarter way to proceed before I re-install julia from the binaries ? |
You can modify the path in the |
@simonbyrne I believe this is now working and so can be closed. |
Yes, this was actually already the case since JuliaStats/Rmath.jl#21 and JuliaStats/Rmath-julia#14, but now much clearer. |
Yes, I didn't think I had fixed it, but it seemed to be working :) |
I am unable to get repeatable random number generation using the R random number generators
I am not entirely sure how this is implemented, but I would suspect that the state of the random number generator in Julia is not sent when calling the external function.
This is obtained on Julia 0.5.0 (x86_64-linux-gnu) for:
The text was updated successfully, but these errors were encountered: