core/asc: srand in ASC_INIT(); modules/udp_output: code cleaning