Closed harshavardhana closed 4 years ago
also avoid racy usage of rand.New(), rand object is not concurrency friendly with default NewSource() - to avoid this seed the rand once and use global rand.Intn()
also avoid racy usage of rand.New(), rand object is not concurrency friendly with default NewSource() - to avoid this seed the rand once and use global rand.Intn()