The Wayback Machine - https://web.archive.org/web/20150404234740/https://developer.mozilla.org/zh-CN/docs/Web/API/RandomSource
mozilla
您的搜索结果

    RandomSource

    我们的志愿者还没有将这篇文章翻译为 中文 (简体) 。加入我们帮助完成翻译!

    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.

    Properties

    RandomSource neither defines nor inherits any property.

    Methods

    RandomSource.getRandomValues()
    Fills the passed ArrayBufferView with cryptographically sound random values.

    Browser Compatibility

    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 Browser Chrome (as App) Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari
    Basic support Not supported 23 21.0 (21) Not supported Not supported iOS 6

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

    Specification

    Specification Status Comment
    Web Cryptography API Candidate Recommendation Initial definition

    See also

     

    文档标签和贡献者

    此页面的贡献者有: teoli
    最后编辑者: teoli,