3 ms·
From https://github.com/JacksonGariety/Yugen/blob/master/routes.js https://github.com/JacksonGariety/Yugen/blob/master/routes.j... res.redirect(crypto.random
by edtechdev 13y ago
From https://github.com/JacksonGariety/Yugen/blob/master/routes.js https://github.com/JacksonGariety/Yugen/blob/master/routes.j...
res.redirect(crypto.randomBytes(3).toString('hex'))
You probably already know this, but you'd probably want to replace that with a unique id generator, like perhaps MongoID or a timestamp or something.
- JacksonGariety 13y agoYeah I wanted to try out crypto. There are a number of things about this app I want to change. Namely getting your cursor to stay in place when other people edit. No clue how to tackle that one.