1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

add fixtures.TestDummy and transform method

This commit is contained in:
Dick Choi
2016-08-27 12:23:58 +09:00
parent 8f1ee30553
commit 3a8bef26d3
4 changed files with 320 additions and 1 deletions

View File

@@ -2,6 +2,6 @@ const crypto = require('crypto')
const _ = require('lodash')
module.exports = function (length) {
if (!_.isFinite(length)) length = 6
if (!_.isFinite(length)) length = 10
return crypto.randomBytes(length).toString('hex')
}