mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-15 19:52:19 +00:00
Seed the random number generator on startup.
This commit is contained in:
parent
3a9f69e097
commit
f88896d0ac
@ -34,6 +34,9 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include <cursespp/App.h>
|
||||
@ -88,6 +91,8 @@ int _main(int argc, wchar_t* argv[])
|
||||
int main(int argc, char* argv[])
|
||||
#endif
|
||||
{
|
||||
srand((unsigned int) time(0));
|
||||
|
||||
/* the following allows boost::filesystem to use utf8 on Windows */
|
||||
std::locale locale = std::locale();
|
||||
std::locale utf8Locale(locale, new boost::filesystem::detail::utf8_codecvt_facet);
|
||||
|
Loading…
Reference in New Issue
Block a user