• Florian Uekermann's avatar
    math/rand: add Rand.Uint64 · 003a598b
    Florian Uekermann authored
    This adds Uint64 methods to Rand and rngSource.
    Rand.Uint64 uses Source.Uint64 directly if it is present.
    
    rngSource.Uint64 provides access to all 64 bits generated by the
    underlying ALFG. To ensure high seed quality a 64th bit has been added
    to all elements of the array of "cooked" random numbers that are used
    for seeding. gen_cooked.go generates both the 63 bit and 64 bit array.
    
    Fixes #4254
    
    Change-Id: I22855618ac69abae3d2799b3e7e59996d4c5a4b1
    Reviewed-on: https://go-review.googlesource.com/27253
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    003a598b
Name
Last commit
Last update
..
example_test.go Loading commit data...
exp.go Loading commit data...
gen_cooked.go Loading commit data...
normal.go Loading commit data...
race_test.go Loading commit data...
rand.go Loading commit data...
rand_test.go Loading commit data...
regress_test.go Loading commit data...
rng.go Loading commit data...
zipf.go Loading commit data...