@@ -834,7 +834,7 @@ func init() {
834
834
divider .Add (divider , big .NewInt (1 ))
835
835
}
836
836
837
- // dividePoint computes x÷(MaxUint64+1)×y without overflow for uint64. it returns a value in the [0, y) range when x≠0.
837
+ // dividePoint computes and returns the value in the [0, y) range when x≠0.
838
838
// Otherwise returns 0.
839
839
func dividePoint (x uint64 , y int64 ) uint64 {
840
840
totalBig := big .NewInt (y )
@@ -847,10 +847,10 @@ func dividePoint(x uint64, y int64) uint64 {
847
847
// nextRandom implements SplitMix64 (based on http://xoshiro.di.unimi.it/splitmix64.c)
848
848
//
849
849
// The PRNG used for this random selection:
850
- // 1. must be deterministic.
851
- // 2. should easily portable, independent of language or library
852
- // 3. is not necessary to keep a long period like MT, since there aren't many random numbers to generate and
853
- // we expect a certain amount of randomness in the seed.
850
+ // 1. must be deterministic.
851
+ // 2. should easily portable, independent of language or library
852
+ // 3. is not necessary to keep a long period like MT, since there aren't many random numbers to generate and
853
+ // we expect a certain amount of randomness in the seed.
854
854
//
855
855
// The shift-register type pRNG fits these requirements well, but there are too many variants. So we adopted SplitMix64,
856
856
// which is used in Java's SplittableStream.
0 commit comments