|
|
|
|
|
by sa46
343 days 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. |
|