Closed
Description
See http://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/ for details.
Marking as Go2, since the compatibility guarantee prevents us from changing the output of Int31n given a seed.
We can still use this in the runtime, though; there are several places where we do fastrand1() % n
. I will send a CL for this for Go 1.8 and have it update this issue.
cc @dgryski