Unified · Split
| @@ -1,3 +1,3 @@ | |||
| 1 | module pgregory.net/rapid | 1 | module pgregory.net/rapid |
| 2 | 2 | ||
| 3 | go 1.12 | 3 | go 1.14 |
| @@ -24,7 +24,7 @@ func bitmask64(n uint) uint64 { · 23 unmodified lines | |||
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | func genFloat01(s bitStream) float64 { | 26 | func genFloat01(s bitStream) float64 { |
| 27 | return float64(s.drawBits(53)) / (1 << 53) | 27 | return float64(s.drawBits(53)) * 0x1.0p-53 |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | func genGeom(s bitStream, p float64) uint64 { | 30 | func genGeom(s bitStream, p float64) uint64 { |