class SplittableRandom
Aleksey Shipilev
aleksey.shipilev at oracle.com
Fri Aug 9 15:43:24 UTC 2013
On 08/09/2013 04:29 PM, Doug Lea wrote:
> Currently at:
> http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/SplittableRandom.java?view=log
Looks good.
Stupid questions below:
* Why use InetAddress.getLocalHost() for the initial seed? I understand
you don't want to use SecureRandom to dodge the depleted entropy case,
but isn't that the over-optimization to initialize the static seed once
per VM/classloader?
* Is there something in floating point math forcing us to use the
constructions like "if (!(origin < bound))" instead of "if (origin >=
bound)"?
Thanks,
-Aleksey.
More information about the core-libs-dev
mailing list