summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/mathutil/rnd.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-02-14 16:54:10 +0000
committerLibravatar GitHub <noreply@github.com>2025-02-14 16:54:10 +0000
commitebbdeee0bb91d5008a405e43114f1653ecdf8ce8 (patch)
treed9b1c087a34e6f5947d553f7cb04503b3c411e93 /vendor/modernc.org/mathutil/rnd.go
parent[bugfix] Drop status indices AFTER updating visibility (#3795) (diff)
downloadgotosocial-ebbdeee0bb91d5008a405e43114f1653ecdf8ce8.tar.xz
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
Diffstat (limited to 'vendor/modernc.org/mathutil/rnd.go')
-rw-r--r--vendor/modernc.org/mathutil/rnd.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/modernc.org/mathutil/rnd.go b/vendor/modernc.org/mathutil/rnd.go
index 598bad4fe..08454cd81 100644
--- a/vendor/modernc.org/mathutil/rnd.go
+++ b/vendor/modernc.org/mathutil/rnd.go
@@ -15,12 +15,12 @@ import (
// this code doesn't produce values at constant delta (mod cycle length).
// The 32 bit limit is per this implementation, the algorithm used has no intrinsic limit on the cycle size.
// Properties include:
-// - Adjustable limits on creation (hi, lo).
-// - Positionable/randomly accessible (Pos, Seek).
-// - Repeatable (deterministic).
-// - Can run forward or backward (Next, Prev).
-// - For a billion numbers cycle the Next/Prev PRN can be produced in cca 100-150ns.
-// That's like 5-10 times slower compared to PRNs generated using the (non FC) rand package.
+// - Adjustable limits on creation (hi, lo).
+// - Positionable/randomly accessible (Pos, Seek).
+// - Repeatable (deterministic).
+// - Can run forward or backward (Next, Prev).
+// - For a billion numbers cycle the Next/Prev PRN can be produced in cca 100-150ns.
+// That's like 5-10 times slower compared to PRNs generated using the (non FC) rand package.
type FC32 struct {
cycle int64 // On average: 3 * delta / 2, (HQ: 2 * delta)
delta int64 // hi - lo