Created
October 18, 2018 07:53
-
-
Save andreasvirkus/511123f3fd52d135b149966a2a7ca9a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generates a small hash (useful for CSRF state params, mocking a token in localStorage for development, etc.) | |
export const generateHash = str => '_' + Math.random().toString(36).substr(2, 9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment