X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Flogcollector%2Fmain.c;fp=src%2Flogcollector%2Fmain.c;h=8608a586ecc9cecdf0cf17df3efadc957683f1b9;hp=5340c85d0dbb1c8f3e407ef671bd87b47cc72c90;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/logcollector/main.c b/src/logcollector/main.c index 5340c85..8608a58 100755 --- a/src/logcollector/main.c +++ b/src/logcollector/main.c @@ -1,11 +1,11 @@ -/* @(#) $Id: main.c,v 1.27 2009/11/18 19:07:40 dcid Exp $ */ +/* @(#) $Id$ */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -45,6 +45,17 @@ int main(int argc, char **argv) char *dir = DEFAULTDIR; + /* Setuping up random */ + #ifndef WIN32 + #ifdef __OpenBSD__ + srandomdev(); + #else + srandom(time(0)); + #endif + #else + srandom(time(0)) + #endif + /* Setting the name */ OS_SetName(ARGV0);