• 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
..
example_test.go Loading commit data...
export_android_test.go Loading commit data...
export_test.go Loading commit data...
export_windows_test.go Loading commit data...
format.go Loading commit data...
format_test.go Loading commit data...
genzabbrs.go Loading commit data...
internal_test.go Loading commit data...
mono_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_abbrs_windows.go Loading commit data...
zoneinfo_android.go Loading commit data...
zoneinfo_android_test.go Loading commit data...
zoneinfo_ios.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_test.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...
zoneinfo_windows_test.go Loading commit data...