lfsr: ensure we don't generate an offset + buflen that exceeds the max size