daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function randomString(length = 16) {
  2.   const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/';
  3.   const charCount = chars.length;
  4.   let str = '';
  5.   while (length-- > 0) {
  6.     str += chars[Math.floor(Math.random() * charCount)];
  7.   }
  8.   return str;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top