Skip to content
Snippets Groups Projects
Select Git revision
  • bc3e662581213274c0e95a6f452356ad7197ef12
  • main default protected
  • FAVLina
  • Lina2
  • fav
  • Lina
  • clem
  • Main
  • Data
9 results

randombytes

  • Clone with SSH
  • Clone with HTTPS
  • a20005638's avatar
    AIT-RAZZOUK Lina authored
    e8cb4fe6
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.

    randombytes

    Version Build Status

    randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues

    var randomBytes = require('randombytes');
    randomBytes(16);//get 16 random bytes
    randomBytes(16, function (err, resp) {
      // resp is 16 random bytes
    });