Update udprand.c

Added support for security features