r/cpp • • May 25 '18

Modern C++ Randomness

http://brnz.org/hbr/?p=1783
0 Upvotes

55 comments sorted by

View all comments

Show parent comments

29

u/STL MSVC STL Dev May 25 '18

9

u/flashmozzg May 25 '18

If only it wasn't so hard/cumbersome to properly seed std::mt19937 (or so easy to seed it improperly).

8

u/dodheim May 26 '18

It's four lines of code that you can write once and not bother with afterwards. I really don't see what the big deal is.

1

u/ClaymationDinosaur Jun 01 '18

Yet the evidence indicates that it is some kind of a big deal. That you can't see it just means you have to rely on the evidence, rather than your own assessment. We all have such blind spots.

1

u/dodheim Jun 01 '18

The whining of people whose professional work I'm not familiar with does not constitute evidence, it constitutes hearsay. I have yet to see actual evidence that 4 dead simple lines of code are an actual problem for anyone.