libwebm: fixed rand() on windows
Change-Id: Ie17445072f10f91bdaabfba74a1be58764d78b94
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user