Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
edtechdev
· 13y ago · 0 comments
From
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.
Comments
[–]
JacksonGariety
13y ago
Yeah 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.