Return an ArrayBuffer object with a number of cryptographically random bytes. It will either return exactly the amount of bytes requested or will throw an exception if something went wrong.
Parameter | Type | Description |
---|---|---|
int | integer | The length of the returned ArrayBuffer. |
Returns
Type | Description |
---|---|
ArrayBuffer | An ArrayBuffer with cryptographically random bytes. |