Add --dns-loop-detect feature.

This commit is contained in:
Simon Kelley committed 2014-07-29 16:34:14 +01:00
1 parent 6d8e8ac0fa
commit b5ea1cc255
12 files changed
+233 -18

No files matched your search

+12
View File
@@ -81,6 +81,18 @@ unsigned short rand16(void)
return (unsigned short) out[--outleft];
}
u32 rand32(void)
{
if (!outleft)
{
if (!++in[0]) if (!++in[1]) if (!++in[2]) ++in[3];
surf();
outleft = 8;
}
return out[--outleft];
}
u64 rand64(void)
{
static int outleft = 0;