otplib-browser/randomBytes

randomBytes browser implementation.

Reference:

  • https://github.com/crypto-browserify/randombytes
  • https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues
Source:
Parameters:
Name Type Description
size string

the size

Returns:
Type:
string