Skip to content

Commit d90729d

Browse files
authored
docs(s2n-quic): document values used in the random provider (#2226)
1 parent f8d6fe0 commit d90729d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

quic/s2n-quic/src/provider/random.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ mod rand {
2525
use s2n_quic_core::random;
2626

2727
// Number of generated bytes after which to reseed the public and private random
28-
// generators. This value is based on THREAD_RNG_RESEED_THRESHOLD from rand::rngs::thread.rs
28+
// generators.
29+
//
30+
// This value is based on THREAD_RNG_RESEED_THRESHOLD from
31+
// [rand::rngs::thread.rs](https://github.com/rust-random/rand/blob/ef75e56cf5824d33c55622bf84a70ec6e22761ba/src/rngs/thread.rs#L39)
2932
const RESEED_THRESHOLD: u64 = 1024 * 64;
3033

3134
#[derive(Debug, Default)]

0 commit comments

Comments
 (0)