mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
fix: increase randomBytes
This commit is contained in:
@@ -61,7 +61,7 @@ const pipe =
|
||||
fns.reduce((v, fn) => fn(v), value)
|
||||
|
||||
const getRandomId = () => {
|
||||
return 'a' + crypto.randomBytes(8).toString('hex')
|
||||
return 'a' + crypto.randomBytes(24).toString('hex')
|
||||
}
|
||||
|
||||
const isDevelopmentEnvironment = () => process.env.NODE_ENV === 'development'
|
||||
|
||||
Reference in New Issue
Block a user