1
0
mirror of https://github.com/golang/go synced 2024-11-19 12:14:42 -07:00
go/src/math
David Chase 38255cbd1b math/rand: improve uniformity of rand.Float64,Float32
Replaced code that substituted 0 for rounded-up 1 with
code to try again.  This has minimal effect on the existing
stream of random numbers, but restores uniformity.

Fixes #12290.

Change-Id: Ib68f0b0a4a173339bcd0274cc16509f7b0977de8
Reviewed-on: https://go-review.googlesource.com/17670
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-12-11 15:17:42 +00:00
..
big math/big: fix misuse of Unicode 2015-12-11 03:37:57 +00:00
cmplx math/cmplx: make error tolerance test function of expected value 2015-10-07 18:41:11 +00:00
rand math/rand: improve uniformity of rand.Float64,Float32 2015-12-11 15:17:42 +00:00
abs.go math: fix typo and braino in my earlier commit 2015-10-29 21:12:08 +00:00
acosh.go
all_test.go math: fix bad shift in Expm1 2015-10-30 22:55:19 +00:00
asin_386.s
asin_amd64.s
asin_amd64p32.s
asin_arm.s
asin.go
asinh.go
atan2_386.s
atan2_amd64.s
atan2_amd64p32.s
atan2_arm.s
atan2.go
atan_386.s
atan_amd64.s
atan_amd64p32.s
atan_arm.s
atan.go
atanh.go
bits.go
cbrt.go math: faster Cbrt 2015-02-23 21:04:46 +00:00
const.go math: explain OEIS link 2015-06-26 01:25:58 +00:00
copysign.go
dim_386.s
dim_amd64.s math: Dim, Max, Min - allow more bit patterns for NaN 2015-02-23 23:07:01 +00:00
dim_amd64p32.s
dim_arm.s
dim.go
erf.go
exp2_386.s
exp2_amd64.s
exp2_amd64p32.s
exp2_arm.s
exp_386.s
exp_amd64.s
exp_amd64p32.s
exp_arm.s
exp.go
expm1_386.s
expm1_amd64.s
expm1_amd64p32.s
expm1_arm.s
expm1.go math: fix bad shift in Expm1 2015-10-30 22:55:19 +00:00
export_test.go
floor_386.s
floor_amd64.s math: optimize ceil/floor functions on amd64 2015-10-03 15:55:08 +00:00
floor_amd64p32.s
floor_arm.s
floor_asm.go math: optimize ceil/floor functions on amd64 2015-10-03 15:55:08 +00:00
floor.go
frexp_386.s
frexp_amd64.s
frexp_amd64p32.s
frexp_arm.s
frexp.go
gamma.go
hypot_386.s
hypot_amd64.s
hypot_amd64p32.s
hypot_arm.s
hypot.go
j0.go all: use one 'l' when cancelling everywhere except Solaris 2015-09-11 18:31:51 +00:00
j1.go all: use one 'l' when cancelling everywhere except Solaris 2015-09-11 18:31:51 +00:00
jn.go math: avoid unused assignment in jn.go 2015-08-24 14:34:36 +00:00
ldexp_386.s
ldexp_amd64.s
ldexp_amd64p32.s
ldexp_arm.s
ldexp.go
lgamma.go
log1p_386.s
log1p_amd64.s
log1p_amd64p32.s
log1p_arm.s
log1p.go
log10_386.s
log10_amd64.s
log10_amd64p32.s
log10_arm.s
log10.go math: fix Log2 test failures on ppc64 (and s390) 2015-07-15 05:35:22 +00:00
log_386.s
log_amd64.s
log_amd64p32.s
log_arm.s
log.go
logb.go
mod_386.s
mod_amd64.s
mod_amd64p32.s
mod_arm.s
mod.go
modf_386.s math: Modf(-0) returns -0,-0 2015-10-09 17:09:16 +00:00
modf_amd64.s
modf_amd64p32.s
modf_arm.s
modf.go math: Modf(-0) returns -0,-0 2015-10-09 17:09:16 +00:00
nextafter.go math: change Nextafter64 to Nextafter in the description of Nextafter 2015-02-17 14:29:18 +00:00
pow10.go
pow.go
remainder_386.s
remainder_amd64.s
remainder_amd64p32.s
remainder_arm.s
remainder.go
signbit.go
sin_386.s
sin_amd64.s
sin_amd64p32.s
sin_arm.s
sin.go
sincos_386.s
sincos_amd64.s
sincos_amd64p32.s
sincos_arm.s
sincos.go
sinh.go
sqrt_386.s
sqrt_amd64.s
sqrt_amd64p32.s
sqrt_arm64.s math, cmd/internal/gc, cmd/7g: enable SQRT inlining, add assembly implementation 2015-04-03 23:48:00 +00:00
sqrt_arm.s
sqrt.go math: fix normalization bug in pure-Go sqrt 2015-10-23 18:29:10 +00:00
stubs_arm64.s math, cmd/internal/gc, cmd/7g: enable SQRT inlining, add assembly implementation 2015-04-03 23:48:00 +00:00
stubs_mips64x.s math, math/big: added support for mips64{,le} 2015-11-12 04:49:57 +00:00
stubs_ppc64x.s all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
tan_386.s
tan_amd64.s
tan_amd64p32.s
tan_arm.s
tan.go
tanh.go
unsafe.go