1
0
mirror of https://github.com/golang/go synced 2024-11-24 04:50:07 -07:00
go/src
Jeff R. Allen 17dc712c18 math/rand: Float32/64 must only return values in [0,1)
Float32 and Float64 are now both created by taking the ratio
of two integers which are chosen to fit entirely into the
precision of the desired float type. The previous code
could cast a Float64 with more than 23 bits of ".99999"
into a Float32 of 1.0, which is not in [0,1).

Float32 went from 15 to 21 ns/op (but is now correct).

Fixes #6721.

R=golang-dev, iant, rsc
CC=golang-dev
https://golang.org/cl/22730043
2013-12-18 15:38:53 -05:00
..
cmd cmd/yacc: gofmt y.go 2013-12-18 15:17:08 -05:00
lib9
libbio build: do not use the host's libbio on Plan 9 2013-12-09 18:39:58 -05:00
liblink liblink: fix Plan 9 warnings 2013-12-18 20:19:29 +01:00
libmach libmach, cmd/8l: fix Plan 9 warnings 2013-12-18 20:19:59 +01:00
pkg math/rand: Float32/64 must only return values in [0,1) 2013-12-18 15:38:53 -05:00
all.bash
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash cmd/dist, build: support building statically linked toolchain 2013-10-01 23:44:20 -04:00
make.bat
Make.dist
make.rc
race.bash race.bash, race.bat: build a race enabled cmd/cgo before trying to use it 2013-09-29 10:34:41 +10:00
race.bat race.bat: set exit status 2013-12-17 15:09:42 +04:00
run.bash cgo: enable cgo on dragonfly 2013-09-04 15:19:21 -07:00
run.bat
run.rc
sudo.bash