3 ms·
Why did you choose random’s SystemRandom rather than secrets?
by sigwinch 1y ago
Why did you choose random’s SystemRandom rather than secrets?
- kragen 1y agoWhat? Oh, you mean PEP 506. I wrote this program in 02012, and PEP 506 wasn't written until 02015, didn't ship in a released Python until 3.6 in 02016, and even then was only available in Python 3, which I didn't use because it basically didn't work at the time. PEP 506 is just 22 lines of code wrapping SystemRandom. There's no advantage over just using SystemRandom directly.
- _zoltan_ 1y agowhat is 02012 and why write it so strange?
- namibj 1y agoThey want to feel like they matter in over 10k years from now, where a 4-digit year would start to wrap.
- ahoka 1y agoObviously it's octal and the person is a time traveler from the 11th century.
- will4274 1y agoIt's the long now foundation thing. The long now foundation encourages writing years with five digits to encourage readers to think about long term planning, to plan for a future of humanity that is measured in more than thousands of years. https://en.wikipedia.org/wiki/Long_Now_Foundation https://en.wikipedia.org/wiki/Long_Now_Foundation
- dredmorbius 1y ago<https://news.ycombinator.com/item?id=45505856 https://news.ycombinator.com/item?id=45505856> <https://news.ycombinator.com/item?id=43463920 https://news.ycombinator.com/item?id=43463920> <https://news.ycombinator.com/item?id=39175614 https://news.ycombinator.com/item?id=39175614>