Fix random generator to use IE11 CryptoAPI