| Index: common/data/rand/mathrand/impl.go
|
| diff --git a/common/data/rand/mathrand/impl.go b/common/data/rand/mathrand/impl.go
|
| index cb0cda4b6e1307d414e7984192cd469d12d66ff8..373e97f6514250903bc03ac9080959805f2c0f07 100644
|
| --- a/common/data/rand/mathrand/impl.go
|
| +++ b/common/data/rand/mathrand/impl.go
|
| @@ -94,6 +94,10 @@ type Rand interface {
|
| // for it. This can be used by callers to pull and use a *rand.Rand instance
|
| // out of the Context safely.
|
| //
|
| + // Other "mathrand" functions and objects MUST NOT BE USED inside the
|
| + // callback, as WithGoRand holds the lock to the current Rand instance, so any
|
| + // additional function call will deadlock.
|
| + //
|
| // The callback's r must not be retained or used outside of hte scope of the
|
| // callback.
|
| WithGoRand(fn func(r *rand.Rand) error) error
|
|
|