Pinboard (jm)
https://pinboard.in/u:jm/public/
recent bookmarks from jmSix Years of Hacker News Comments about Twilio2016-05-30T09:12:41+00:00
https://kev.inburke.com/kevin/six-years-of-hacker-news-comments-about-twilio/
jmtwilio hn hackernews funny techhttps://pinboard.in/https://pinboard.in/u:jm/b:3f121d40c3b8/Just use /dev/urandom to generate random numbers2015-11-22T22:42:02+00:00
https://news.ycombinator.com/item?id=10608579
jmUsing SHA-1 [to generate random numbers] in this way, with a random seed and a counter, is just building a (perfectly sound) CSPRNG with, I believe, an 80-bit security level. If you trust the source of the random seed, e.g. /dev/urandom, you may as well just use /dev/urandom itself. If you don't, you're already in trouble.
And if you somehow need a userspace PRNG, the usual advice about not rolling your own crypto unless you know what you're doing applies. (Especially for database IDs, the risk of collisions should be considered a security problem, ergo this should be considered crypto, until proven otherwise.) In this case, using BLAKE2 instead of SHA-1 would get you a higher security level and faster hashing.
Or, in tptacek's words: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/
]]>random randomness urandom uuids tptacek hackernews prnghttps://pinboard.in/https://pinboard.in/u:jm/b:eb97c2e2d1c5/Game servers: UDP vs TCP2014-04-01T21:49:21+00:00
https://news.ycombinator.com/item?id=7507377
jmudp tcp games protocols networking latency internet gaming hackernewshttps://pinboard.in/https://pinboard.in/u:jm/b:1876270a5c09/