Searched defs:lfsr2 (Results 1 - 2 of 2) sorted by relevance

/bind-9.11.3/bin/tests/
H A Dlfsr_test.c24 isc_lfsr_t lfsr1, lfsr2; local
72 isc_lfsr_init(&lfsr2, 0, 16, 0x00008016U, 0, NULL, NULL);
74 isc_lfsr_generate(&lfsr2, &state[i], 4);
75 printf("lfsr2: state[%2d] = %08x\n", i, state[i]);
77 isc_lfsr_init(&lfsr2, 0, 16, 0x00008016U, 0, NULL, NULL);
79 isc_lfsr_generate(&lfsr2, &temp, 4);
81 printf("lfsr2: state[%2d] = %08x, "
/bind-9.11.3/lib/isc/
H A Dlfsr.c132 * Skip states in lfsr1 and lfsr2 using the other's current state.
133 * Return the final state of lfsr1 ^ lfsr2.
136 isc_lfsr_generate32(isc_lfsr_t *lfsr1, isc_lfsr_t *lfsr2) argument
142 REQUIRE(VALID_LFSR(lfsr2));
145 skip2 = lfsr2->state & 0x01;
149 state2 = lfsr_skipgenerate(lfsr2, skip1);

Completed in 9 milliseconds