c++ - Is the algorithm behind std::seed_seq defined? -


does standard require output of seed_seq same different implementations of stl? in other words, following guaranteed produce same output on different standard compliant platforms, or not?

std::seed_seq sseq = { 1701, 1729, 1791 }; std::array<unsigned int, 5> seq; sseq.generate(seq.begin(), seq.end()); (unsigned x : seq)    std::cout << x << " " << std::endl; 

yes. algorithm defined in 23.54.7.1 [rand.util.seedseq]

posting image loses formatting text

enter image description here


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -