Fix[entropy]: Fix race condition during testing conditions
This commit is contained in:
parent
a063fa9a27
commit
5348c67e04
|
@ -160,7 +160,9 @@ func Test_RNGUint32(t *testing.T) {
|
|||
t.Parallel()
|
||||
// start globals fresh, just for coverage.
|
||||
setSharedRand()
|
||||
hardLocc.Lock()
|
||||
getSharedRand = &sync.Once{}
|
||||
hardLocc.Unlock()
|
||||
RNGUint32()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue