The purpose of the `TIMER' is to feed the entropy a small quantity of
entropy on a regular basis. Encoding the implementation in the name was
an error which this commit fixes.
admin_resop *r = v;
T( trace(T_ADMIN, "admin: resop %s resolved", BGTAG(r)); )
admin_resop *r = v;
T( trace(T_ADMIN, "admin: resop %s resolved", BGTAG(r)); )
if (!h) {
a_bgfail(&r->bg, "resolve-error", "%s", r->addr, A_END);
r->func(r, ARES_FAIL);
if (!h) {
a_bgfail(&r->bg, "resolve-error", "%s", r->addr, A_END);
r->func(r, ARES_FAIL);
char *av[16 + 1];
size_t ac;
char *av[16 + 1];
size_t ac;
if (a->f & AF_DEAD)
return;
if (!p) {
if (a->f & AF_DEAD)
return;
if (!p) {
/* --- Read the data --- */
/* --- Read the data --- */
sz = sizeof(addr);
n = recvfrom(fd, buf_i, sizeof(buf_i), 0, &a.sa, &sz);
if (n < 0) {
sz = sizeof(addr);
n = recvfrom(fd, buf_i, sizeof(buf_i), 0, &a.sa, &sz);
if (n < 0) {
{
buf *bb = p_txstart(p, MSG_PACKET);
{
buf *bb = p_txstart(p, MSG_PACKET);
p_encrypt(p, MSG_PACKET, b, bb);
if (BOK(bb) && BLEN(bb)) {
p->st.n_ipout++;
p_encrypt(p, MSG_PACKET, b, bb);
if (BOK(bb) && BLEN(bb)) {
p->st.n_ipout++;
/*----- Other macros ------------------------------------------------------*/
/*----- Other macros ------------------------------------------------------*/
-#define TIMER noise_timer(RAND_GLOBAL)
+#define QUICKRAND noise_timer(RAND_GLOBAL)
/*----- Key management ----------------------------------------------------*/
/*----- Key management ----------------------------------------------------*/