libwebm: fixed rand() on windows

Change-Id: Ie17445072f10f91bdaabfba74a1be58764d78b94
This commit is contained in:
Matthew Heaney
2013-01-24 11:27:48 -08:00
parent 8376a8e9d7
commit 43178b4c9a
4 changed files with 32 additions and 2 deletions

View File

@@ -1831,6 +1831,9 @@ Segment::Segment()
writer_header_(NULL) {
const time_t curr_time = time(NULL);
seed_ = static_cast<unsigned int>(curr_time);
#ifdef _WIN32
srand(seed_);
#endif
}
Segment::~Segment() {