]> Cypherpunks repositories - gostls13.git/commit
Revert "math/rand: make Perm match Shuffle"
authorRuss Cox <rsc@golang.org>
Thu, 16 Nov 2017 02:29:04 +0000 (02:29 +0000)
committerRuss Cox <rsc@golang.org>
Thu, 16 Nov 2017 16:24:30 +0000 (16:24 +0000)
commitd9a198c7d0526f00a42f00d90cc4b91802a3354c
tree2f91348a6fda20d88ebc6e049a20c48ee9dec86b
parent02298ae11a0d63afe42431791dad92dcf9714c3d
Revert "math/rand: make Perm match Shuffle"

This reverts CL 55972.

Reason for revert: this changes Perm's behavior unnecessarily.
I asked for this change originally but I now regret it.
Reverting so that I don't have to justify it in Go 1.10 release notes.

Edited to keep the change to rand_test.go, which seems to have
been mostly unrelated.

Fixes #22744.

Change-Id: If8bb1bcde3ced0db2fdcd0aa65ab128613686c66
Reviewed-on: https://go-review.googlesource.com/78195
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/math/rand/example_test.go
src/math/rand/rand.go
src/math/rand/regress_test.go