|
|
пре 2 година | |
|---|---|---|
| .. | ||
| LICENSE | пре 2 година | |
| README.md | пре 2 година | |
| index.js | пре 2 година | |
| package.json | пре 2 година | |
Random string generator.
Basically Math.random().toString(36).slice(2),
but with both upper and lower case letters and arbitrary lengths.
Useful for creating fast, not cryptographically secure salts.
// base62 by default
var rndm = require('rndm')
var salt = rndm(16)
Create a new random generator with custom characters.