2 ms·
It depends on how granular your clock is, too. If you seed with a number of seconds then it's pretty easy to brute-force that. If you seed with nanoseconds it'l
by mikeash 10y ago
It depends on how granular your clock is, too. If you seed with a number of seconds then it's pretty easy to brute-force that. If you seed with nanoseconds it'll be a lot harder.
- kaoD 10y ago> If you seed with nanoseconds it'll be a lot harder. Not really. Or rather, a lot of zero is zero.
- mikeash 10y agoCan you elaborate? I'm assuming the nanosecond-precision lock seeding the RNG is based on wall clock time or system uptime, so as long as the clock is actually that precise (and why not, when the base clock signal in the CPU is ticking a couple of times each nanosecond) you'll get that many digits.
- kaoD 10y agoNanosecond resolution multiplies the brute force effort by 10^9, which is negligible.