Discover Packages
github.com/goceleris/celeris
middleware
internal
randutil
package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Apr 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package randutil provides a shared, buffered cryptographic random token
generator that amortizes crypto/rand syscalls across middleware packages.
HexToken returns a cryptographically random hex string of n*2 characters
(n random bytes, hex-encoded). Uses a stack buffer for n<=32 (the common
case) to avoid the intermediate byte slice allocation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.