1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 08:16:38 +02:00

src/random.c: remove unused variable and reorder struct on Windows.

This commit is contained in:
Bram Matthys
2020-02-18 14:54:06 +01:00
parent 401fcf14aa
commit 6224efdaf3
+2 -4
View File
@@ -438,18 +438,16 @@ void init_random()
{
struct {
#ifndef _WIN32
struct timeval nowt; /* time */
struct timeval nowt; /* time */
char rnd[32]; /* /dev/urandom */
#else
MEMORYSTATUS mstat; /* memory status */
struct _timeb nowt; /* time */
MEMORYSTATUS mstat; /* memory status */
#endif
} rdat;
#ifndef _WIN32
int fd;
#else
MEMORYSTATUS mstat;
#endif
_rs_stir();