Skip to content

Instantly share code, notes, and snippets.

@luigimannoni
Created November 12, 2015 09:29
Show Gist options
  • Select an option

  • Save luigimannoni/12db6e12b9a16f7cf32c to your computer and use it in GitHub Desktop.

Select an option

Save luigimannoni/12db6e12b9a16f7cf32c to your computer and use it in GitHub Desktop.

Revisions

  1. luigimannoni created this gist Nov 12, 2015.
    3 changes: 3 additions & 0 deletions hash.generator.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function generateRandomHash(_length) {
    return Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, _length);
    }