-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
rand(::BigFloat) #13948
Comments
Apparently it got reverted by @ViralBShah because it broke the build: 1a8885b |
I looked at it - oh man - that is bit tricky: mpfr really wants to use the gmp random number generator and does not allow to provide entropy directly. |
We may have to fork it – it wouldn't be the first time :-. Longer term the MPFR project may be receptive to upstreaming changes that allow using other sources of entropy. |
I made a PR with a let's call it economic approach without attempting to circumvent GPM. |
cc @andrioni |
implement rand(::BigFloat) (close #13948)
We once had a
rand!
for BigFloats using mpfr_urandom, see #4845.Apparently this got removed/got lost. As said in #9836 "probably not high priority other than for completeness". I ran into this when calling iterative algorithms parametrized by element-type T which starting from a random vector rand(T,n).
The text was updated successfully, but these errors were encountered: