Commit c94b121
authored
impl(common): improve
Use `MakeDefaultPRNG()` to initialize the PRNG (pseudo-random number generator)
in `InvocationIdGenerator`. This function consumes the same amount of
entropy from the OS as the previous call, but uses `std::seed_seq` to
fill the initial state of the PRNG. AFAIK, `std::seed_seq` produces
better distributed seeds from the same entropy.InvocationIdGenerator seed (#13711)1 parent 89db20a commit c94b121
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments