Permalink
Browse files

Reduce bundle size

  • Loading branch information...
ai committed Aug 6, 2017
1 parent e790a5e commit 036612e7d6cc5760313a8850a2751a5e95184eab
Showing with 3 additions and 3 deletions.
  1. +1 −1 format.js
  2. +1 −1 package.json
  3. +1 −1 random-browser.js
View
@@ -24,7 +24,7 @@
* @name format
*/
module.exports = function (random, alphabet, size) {
var step = Math.ceil(1.2 * 256 / alphabet.length * size)
var step = Math.ceil(310 / alphabet.length * size)
var bytes, byte
var id = ''
View
@@ -56,7 +56,7 @@
"size-limit": [
{
"path": "index.js",
"limit": "320 B"
"limit": "260 B"
}
],
"lint-staged": {
View
@@ -1,4 +1,4 @@
var crypto = global.crypto || global.msCrypto
var crypto = window.crypto || window.msCrypto
module.exports = function (bytes) {
return crypto.getRandomValues(new Uint8Array(bytes))

0 comments on commit 036612e

Please sign in to comment.