lib: constify allnet_verify, create_packet and init_packet
changed some of the log messages
re-enabled optimization for x^65537
changed to sleep even though not gathering random data
AB's adding of const to create/init_packet and allnet_verify