compound-ex4
Version:
Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)
28 lines (17 loc) • 532 B
Markdown
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.
```js
// base62 by default
var rndm = require('rndm')
var salt = rndm(16)
```
Create a new random generator with custom characters.