let NONCE_LENGTH = 30;
let NONCE_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";

export default function () {
  let text = "";

  for (let i = 0; i < NONCE_LENGTH; i++) {
    let charIndex = Math.floor(Math.random() * NONCE_CHARACTERS.length);
    text += NONCE_CHARACTERS.charAt(charIndex);
  }

  return text;
}
