DisableRandPool disables the randomness pool if it was previously enabled with EnableRandPool. Both EnableRandPool and DisableRandPool are not thread-safe and should only be called when there is no possibility that New or any other UUID Version 4 generation function will be called concurrently.
()
| 374 | // only be called when there is no possibility that New or any other |
| 375 | // UUID Version 4 generation function will be called concurrently. |
| 376 | func DisableRandPool() { |
| 377 | poolEnabled = false |
| 378 | defer poolMu.Unlock() |
| 379 | poolMu.Lock() |
| 380 | poolPos = randPoolSize |
| 381 | } |
| 382 | |
| 383 | // UUIDs is a slice of UUID types. |
| 384 | type UUIDs []UUID |
no outgoing calls