• Russ Cox's avatar
    testing/quick: generate all possible int64, uint64 values · 719c7b03
    Russ Cox authored
    When generating a random int8, uint8, int16, uint16, int32, uint32,
    quick.Value chooses among all possible values.
    
    But when generating a random int64 or uint64, it only chooses
    values in the range [-2⁶², 2⁶²) (even for uint64).
    It should, like for all the other integers, use the full range.
    
    If it had, this would have caught #19807 earlier.
    Instead it let us discover the presence of #19809.
    
    While we are here, also make the default source of
    randomness not completely deterministic.
    
    Fixes #19808.
    
    Change-Id: I070f852531c92b3670bd76523326c9132bfc9416
    Reviewed-on: https://go-review.googlesource.com/39152
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    719c7b03
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...