math/rand: Intn etc. should panic if their argument is <= 0.
I am making a unilateral decision here. I could also settle for returning 0, as long it's documented, but I argue that it's equivalent to an index out of bounds. Fixes #2892. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5676079
Showing
Please register or sign in to comment