Re:Random in the wild
by clarry on Tuesday December 09, 2014 @01:40PM
(#8724695)
I would've appreciated if you'd annotated each snippet with the source so as to make it easier for us to find the program it came from. One interesting question to ask next would be, what do these programs do with their random numbers? And so, does the quality of the stream or the non-repeatability of it matter at all?
[ Parent
| on HN ]
Re:Random in the wild
by waterhouse on Tuesday December 09, 2014 @03:12PM
(#8725368)
Since he's mocking and snarking at each snippet, I think adding pointers to the sources would make it come off as an incitement to make fun of the authors, and rather more mean than he intended. An alternative would be to add direct citations but tone down the snark. I think Ted wanted to focus on the code examples themselves, and to make an overarching point about how "rand" is actually used in practice.
That said, if you want to figure it out, he did say they were "selected examples" from this list of projects: http://marc.info/?l=openbsd-tech&m=141776286105814&w=2 Also, you may be able to google for exact text matches with the code. (You might find other projects that have the exact same problem--but that is likely good enough.)
Re:Random in the wild
by moron4hire on Tuesday December 09, 2014 @04:52PM
(#8726060)
There was a particularly egregious example near the end that a simple Google search definitively found only one copy.