From ca90ebdfa8789654766c5d7969baa7afacd9ebd2 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 16 Feb 2026 16:31:54 -0500 Subject: initial commit --- common/rand/rand.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 common/rand/rand.go (limited to 'common/rand') 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) +} -- cgit v1.2.3-59-g8ed1b