Fixes https://github.com/gravitational/teleport-private/issues/80
LAT-APP21-5: Insecure random number generation
- updated rand call from rand.Reader.Read to rand.Read
- changed length parameter name from len to l.
- changed byte slice var name to b.
- updated godoc
Three changes:
1. Pings are randomized. Note `utils.RandomizedDuration()` function.
2. Sleeps are twice as long between failures.
3. Made tests less vulnerable to sleep times (also sped them up by about
three seconds)
+ minor refactoring, moved "magic constants" into a proper
constants in `defaults` module.