3 ms·
> This uses global state under the hood. Looks safe to me. It uses `crypto/rand.Read` which is declared as safe for concurrent use. The cache is accessed via s
by sa46 1y ago
> This uses global state under the hood.
Looks safe to me. It uses `crypto/rand.Read` which is declared as safe for concurrent use. The cache is accessed via sync.Pool which is thread safe. As a check, I ran the tests with `-race` and it passed.