Skip to content

Instantly share code, notes, and snippets.

@knrt10
Created May 11, 2018 07:27
Show Gist options
  • Select an option

  • Save knrt10/28b544eed6803826a2b2dd16a59f68cf to your computer and use it in GitHub Desktop.

Select an option

Save knrt10/28b544eed6803826a2b2dd16a59f68cf to your computer and use it in GitHub Desktop.
Create random string
const roomNumber = crypto
.randomBytes(12)
.toString('base64')
.replace(/[+/=]+/g, '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment