You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/rands
James Tucker 0207c19137
util/rands: add a cheap non-escaping rand type
math/rand and the current v2 proposal retain a source interface that
means they always heap allocate until some future compiler changes this
constraint. This type is one that can be used on-stack for use cases
like a cheap in-place shuffle with an on-stack random generator.

Updates #17243
Signed-off-by: James Tucker <james@tailscale.com>
5 months ago
..
cheap.go util/rands: add a cheap non-escaping rand type 5 months ago
cheap_test.go util/rands: add a cheap non-escaping rand type 5 months ago
rands.go util/rands: add package with HexString func 10 months ago
rands_test.go util/rands: add package with HexString func 10 months ago