cbgt icon indicating copy to clipboard operation
cbgt copied to clipboard

Remove random seed initializer

Open tleyden opened this issue 8 years ago • 0 comments

I just stumbled upon https://github.com/couchbase/cbgt/blob/master/misc.go#L32

func init() {
	rand.Seed(time.Now().UTC().UnixNano())
}

from the git history it looks like I had added it at some point.

I think it might have been accidentally pushed as a temporary workaround for https://issues.couchbase.com/browse/MB-24237?focusedCommentId=214133, and it should probably get removed per @mschoch's comment about libraries not touching the global random seed.

tleyden avatar Jan 22 '18 22:01 tleyden