Fixes for compilation under Windows (specifically MSVC). Also added MSVC supported "_inline", and fixed some WIN32 specific warnings.
This commit is contained in:
committed by
Marcelo Roberto Jimenez
parent
fed316ff3e
commit
92ea719804
@@ -106,7 +106,7 @@ void get_random_info(unsigned char seed[16])
|
||||
GetComputerName( r.hostname, &r.l );
|
||||
/* MD5 it */
|
||||
MD5Init(&c);
|
||||
MD5Update(&c, &r, sizeof r);
|
||||
MD5Update(&c, (unsigned char *)(&r), sizeof r);
|
||||
MD5Final(seed, &c);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user