diff --git a/.gitignore b/.gitignore index 76b1021..0373d52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .nyc_output coverage node_modules +.idea/ diff --git a/index.js b/index.js index 640db8f..552a1c4 100644 --- a/index.js +++ b/index.js @@ -35,12 +35,20 @@ function escapeUnsafeChars(unsafeChar) { } function generateUID() { - var bytes = randomBytes(UID_LENGTH); - var result = ''; - for(var i=0; i