Added srand initialisation.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2848 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-04-14 20:18:57 +00:00
parent ce8e120765
commit 18f196dbcd
5 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,8 @@ void Usage()
int main( int argc, char *argv[] )
{
srand( getpid() * time( 0 ) );
int id = -1;
static struct option long_options[] = {

View File

@ -42,6 +42,8 @@ void Usage()
int main( int argc, char *argv[] )
{
srand( getpid() * time( 0 ) );
const char *device = "";
const char *protocol = "";
const char *host = "";

View File

@ -104,6 +104,8 @@ void Usage()
int main( int argc, char *argv[] )
{
srand( getpid() * time( 0 ) );
int id = -1;
static struct option long_options[] = {

View File

@ -52,6 +52,8 @@ bool ValidateAccess( User *user, int mon_id )
int main( int argc, const char *argv[] )
{
srand( getpid() * time( 0 ) );
enum { ZMS_MONITOR, ZMS_EVENT } source = ZMS_MONITOR;
enum { ZMS_JPEG, ZMS_MPEG, ZMS_RAW, ZMS_ZIP, ZMS_SINGLE } mode = ZMS_JPEG;
char format[32] = "";

View File

@ -138,6 +138,8 @@ bool ValidateAccess( User *user, int mon_id, int function )
int main( int argc, char *argv[] )
{
srand( getpid() * time( 0 ) );
static struct option long_options[] = {
{"device", 2, 0, 'd'},
{"monitor", 1, 0, 'm'},