Update libnet_prand.c

Include <wincrypt.h> for Win32. Include <sys/time.h> for all except MSVC (gettimeofday). MSVC must use 'srand()'.