VSI submission: make the VMS version of RAND_poll() faster and more secure