cloudflare / backoff

Backoff timer shared between several projects.
BSD 2-Clause "Simplified" License
46 stars 8 forks source link

Lock prng when adding jitter #7

Closed lmb closed 8 years ago

lmb commented 8 years ago

The default Rand implementation is not concurrency-safe, so we need to lock the source before using it.

kisom commented 8 years ago

LGTM.