We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

Esta traducción está incompleta. Por favor, ayuda a traducir este artículo del inglés.

RandomSource represents a source of cryptographically secure random numbers. It is available via the Crypto object of the global object: Window.crypto on Web pages, WorkerGlobalScope.crypto in workers.

RandomSource is a not an interface and no object of this type can be created.


RandomSource neither defines nor inherits any property.


Fills the passed ArrayBufferView with cryptographically sound random values.


Specification Status Comment
Web Cryptography API Recommendation Initial definition

Browser Compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 11.0 WebKit bug 22049 21 (21) [1] 11.0 15.0 3.1
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Sin soporte 23 21.0 (21) Sin soporte Sin soporte 6

[1] Although the transparent RandomSource is only available since Firefox 26, the feature was available in Firefox 21.

See also

Etiquetas y colaboradores del documento

 Colaboradores en esta página: Jeremie
 Última actualización por: Jeremie,