Commit Graph
5 Commits
Author SHA1 Message Date
Jim Bishopp 0ba6809cc4 Fix CryptoRandomHex function (#9186)
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
2021-12-09 19:50:44 +00:00
klizhentas 75a430bfa9 add resize sync and detection on tsh on both sides, fixes #235 2016-03-15 17:16:58 -07:00
klizhentas 519f07611b fix data races and remove sleep from tests
* fix data race with advertise ip
* remove global variable
* simplify pings logic and fix ping bug
* fix potential bug in dynamic labels
2016-03-08 18:41:05 -08:00
Ev Kontsevoy 0b75792171 More intelligent node ping
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.
2016-03-08 09:17:41 -08:00
klizhentas dbca78bd3e add session renewal, faster expiration times, race conditions fixes 2016-02-26 14:57:51 -08:00