Descriptionmath/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 issue 2892.
Patch Set 1 #Patch Set 2 : diff -r f11edbb3cd95 https://code.google.com/p/go/ #MessagesTotal messages: 4
|