crypt.js
function(n) {
      for (var bytes = []; n > 0; n--)
        bytes.push(Math.floor(Math.random() * 256));
      return bytes;
    }
function(n) {
      for (var bytes = []; n > 0; n--)
        bytes.push(Math.floor(Math.random() * 256));
      return bytes;
    }
function ( n ) { for ( var bytes = [ ] ; n > 0 ; n -- ) bytes . push ( Math . floor ( Math . random ( ) * 256 ) ) ; return bytes ; }
Generate an array of any length of random bytes
Generate an array of any length of random bytes