Changeset 10813 for code/branches/cpp11_v2/src/libraries/core
- Timestamp:
- Nov 17, 2015, 6:28:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/CoreConfig.cc
r10765 r10813 35 35 #include "core/Language.h" 36 36 #include "core/ApplicationPaths.h" 37 38 #include <random> 37 39 38 40 namespace orxonox … … 129 131 if (!bInitialized && this->bInitRandomNumberGenerator_) 130 132 { 131 srand(static_cast<unsigned int>(time(0))); 133 std::random_device rnddev; 134 rndseed(rnddev()); 135 //Keep the old seeding around because people will probably still use the old functions 136 srand(rnddev()); 132 137 rand(); 133 138 bInitialized = true;
Note: See TracChangeset
for help on using the changeset viewer.