remove srand function call

This commit is contained in:
andyque 2014-01-03 11:56:58 +08:00
parent 774542a341
commit 88efbfc9cc
2 changed files with 0 additions and 2 deletions

View File

@ -282,7 +282,6 @@ public:
{
if (!_data.empty())
{
srand(time(NULL));
ssize_t randIdx = rand() % _data.size();
iterator randIter = _data.begin();
std::advance(randIter , randIdx);

View File

@ -229,7 +229,6 @@ public:
{
if (!_data.empty())
{
srand(time(NULL));
ssize_t randIdx = rand() % _data.size();
return *(_data.begin() + randIdx);
}