EnableRandPool enables internal randomness pool used for Random (Version 4) UUID generation. The pool contains random bytes read from the random number generator on demand in batches. Enabling the pool may improve the UUID generation throughput significantly. Since the pool is stored on the Go heap
()
| 364 | // only be called when there is no possibility that New or any other |
| 365 | // UUID Version 4 generation function will be called concurrently. |
| 366 | func EnableRandPool() { |
| 367 | poolEnabled = true |
| 368 | } |
| 369 | |
| 370 | // DisableRandPool disables the randomness pool if it was previously |
| 371 | // enabled with EnableRandPool. |
no outgoing calls