crypto.getRandomValues(typedArray)
-
typedArray
<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> -
返回:<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> 返回
typedArray
。¥Returns: <Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> Returns
typedArray
.
crypto.webcrypto.getRandomValues()
的便捷别名。此实现不符合 Web 加密规范,要编写与 web 兼容的代码,则改用 crypto.webcrypto.getRandomValues()
。
¥A convenient alias for crypto.webcrypto.getRandomValues()
. This
implementation is not compliant with the Web Crypto spec, to write
web-compatible code use crypto.webcrypto.getRandomValues()
instead.