Skip to content

weixin-ts / cdn/src / randomBytes

Function: randomBytes()

randomBytes(length): Uint8Array

Defined in: cdn/src/utils.ts:30

Generate random bytes using WebCrypto.

Parameters

length

number

Number of random bytes

Returns

Uint8Array

Random bytes as Uint8Array

Released under the MIT License.