Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooks/test: fix incorrect use of math/rand
Fix incorrect uses of math/rand: - do not call rand.Seed() in a test as it affects the global pseudo-random number generator and might affect other tests (or Logrus itself). Instead, use a local instance of a number generator - seed with time.Now().UnixNano() instead of time.Now().Unix() for more randomness - use "rand.Intn(100)" instead of "rand.Int() % 100"
- Loading branch information