cmd: Seed the random number generator.

This commit is contained in:
Alexander Nicolaysen Sørnes 2008-01-09 18:45:15 +01:00 committed by Alexandre Julliard
parent 992c891c8f
commit 5d9f73eaef

View file

@ -118,6 +118,8 @@ int wmain (int argc, WCHAR *argvW[])
char ansiVersion[100];
CMD_LIST *toExecute = NULL; /* Commands left to be executed */
srand(time(NULL));
/* Pre initialize some messages */
strcpy(ansiVersion, PACKAGE_VERSION);
MultiByteToWideChar(CP_ACP, 0, ansiVersion, -1, string, 1024);