summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorhanishkvc <hanishkvc@gmail.com>2022-05-24 02:15:16 +0530
committerWaldemar Brodkorb <wbx@openadk.org>2022-05-29 07:44:36 +0200
commit28805243f676e769f7c8035125c9e78bf5606434 (patch)
tree4dc5f3435f271deb11068ce83690d528ac7e6b10 /libc/string
parentad3a130dad88ad7a59dcd965b0cf9bd0d713595e (diff)
DnsLookup: stdint, timeforced reseeding
Explicitly include stdint header as logic uses INT[64]_MAX, just in case for future, even though the chain of headers from existing includes brings in the definition indirectly as of now. Cross check for time gap between prngplus reseeding, periodically, has the internal state is being consumed, so that if there is too much time gap, then prng reseeding can be forced, before the normal reseed window is reached. This is useful for long running programs which trigger dns queries only intermittently. If clock_gettime is not available, then reseed more frequently, by default. A platform developer may change the reseed frequence, to be bit more less often in this case, if needed, by tweaking the defines in the source. Signed-off-by: hanishkvc <hanishkvc@gmail.com>
Diffstat (limited to 'libc/string')
0 files changed, 0 insertions, 0 deletions