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.
()
| 346 | // only be called when there is no possibility that New or any other |
| 347 | // UUID Version 4 generation function will be called concurrently. |
| 348 | func DisableRandPool() { |
| 349 | poolEnabled = false |
| 350 | defer poolMu.Unlock() |
| 351 | poolMu.Lock() |
| 352 | poolPos = randPoolSize |
| 353 | } |
| 354 | |
| 355 | // UUIDs is a slice of UUID types. |
| 356 | type UUIDs []UUID |
no outgoing calls