code: function seedRandom(buffer) {
    if (!(buffer instanceof Uint8Array)) {
      buffer = new Uint8Array(buffer);
    }
    openpgp.crypto.random.randomBuffer.set(buffer);
  }
docs: 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