Commit 598c094
authored
feat: increase
`random::<N>()` refills a thread-local cache via `PK11_GenerateRandom`
(SHA-256 DRBG) each time the cache is exhausted. That can still
cause measurable overheads if a lot of random bytes are needed.RandomCache size from 256 to 4096 bytes (#51)1 parent 0ea3df7 commit 598c094
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
0 commit comments