mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
This commit is contained in:
@@ -135,7 +135,7 @@ int Mysql_connection_thread::init()
|
||||
/* Initialize random number generator */
|
||||
{
|
||||
ulong seed1= (ulong) &rand_st + rand();
|
||||
ulong seed2= rand() + time(0);
|
||||
ulong seed2= rand() + (ulong) time(0);
|
||||
randominit(&rand_st, seed1, seed2);
|
||||
}
|
||||
/* Fill scramble - server's random message used for handshake */
|
||||
|
@@ -199,7 +199,7 @@ static void init_environment(char *progname)
|
||||
MY_INIT(progname);
|
||||
log_init();
|
||||
umask(0117);
|
||||
srand(time(0));
|
||||
srand((uint) time(0));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user