mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
latest changes from main rep
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Random.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/src/Random.cpp#13 $
|
||||
// $Id: //poco/Main/Foundation/src/Random.cpp#14 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Crypt
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
#include "Poco/Random.h"
|
||||
#include "Poco/RandomStream.h"
|
||||
#include "time.h"
|
||||
#include <ctime>
|
||||
|
||||
|
||||
/*
|
||||
@@ -172,7 +172,7 @@ Random::Random(int stateSize)
|
||||
poco_assert (BREAK_0 <= stateSize && stateSize <= BREAK_4);
|
||||
|
||||
_pBuffer = new char[stateSize];
|
||||
initState((UInt32) time(NULL), _pBuffer, stateSize);
|
||||
initState((UInt32) std::time(NULL), _pBuffer, stateSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user