Class: RandomBuffer

RandomBuffer()

Buffer for secure random numbers

Constructor

new RandomBuffer()

Source:

Methods

(async) get(buf)

Take numbers out of buffer and copy to array

Parameters:
Name Type Description
buf Uint8Array

the destination array

Source:

init(size)

Initialize buffer

Parameters:
Name Type Description
size Integer

size of buffer

Source:

set(buf)

Concat array of secure random numbers to buffer

Parameters:
Name Type Description
buf Uint8Array
Source: