src/worker/worker.js
function seedRandom(buffer) {
  if (!(buffer instanceof Uint8Array)) {
    buffer = new Uint8Array(buffer);
  }
  openpgp.crypto.random.randomBuffer.set(buffer);
}
function seedRandom(buffer) {
  if (!(buffer instanceof Uint8Array)) {
    buffer = new Uint8Array(buffer);
  }
  openpgp.crypto.random.randomBuffer.set(buffer);
}
function seedRandom ( buffer ) { if ( ! ( buffer instanceof Uint8Array ) ) { buffer = new Uint8Array ( buffer ) ; } openpgp . crypto . random . randomBuffer . set ( buffer ) ; }
Seed the library with entropy gathered window.crypto.getRandomValues
as this api is only avalible in the main window.
@param  {ArrayBuffer} buffer   Some random bytes
Seed the library with entropy gathered window . crypto . getRandomValues as this api is only avalible in the main window .