diff options
| author | 2026-02-16 16:31:54 -0500 | |
|---|---|---|
| committer | 2026-02-16 16:31:54 -0500 | |
| commit | ca90ebdfa8789654766c5d7969baa7afacd9ebd2 (patch) | |
| tree | 9693e0c7a5af6713f4c5e39372dcf22d05844ec3 /common/rand | |
Diffstat (limited to '')
| -rw-r--r-- | common/rand/rand.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/rand/rand.go b/common/rand/rand.go new file mode 100644 index 0000000..79f9efb --- /dev/null +++ b/common/rand/rand.go @@ -0,0 +1,7 @@ +package rand + +import "math/rand" + +func Uint16() uint16 { + return uint16(rand.Uint32() & 0xffff) +} |
