random methods have been removed from
window.crypto. Those were part of the non-standard Crypto API of Netscape 4 but not implemented in Gecko-based Netscape 6 and Firefox, just throwing a
NS_ERROR_NOT_IMPLEMENTED exception. Note that the standardized
window.crypto.getRandomValues method is available since Firefox 21 to get cryptographically random values.