OEMCrypto v16.1 -- update ODK
This CL updates the ODK library to address review comments.
This commit is contained in:
@@ -46,9 +46,9 @@ void CdmRandomGenerator::Seed(unsigned int s) {
|
||||
generator_.seed(s);
|
||||
}
|
||||
|
||||
int CdmRandomGenerator::Rand() {
|
||||
unsigned int CdmRandomGenerator::Rand() {
|
||||
CdmRandomLock lock(generator_lock_);
|
||||
std::uniform_int_distribution<int> dist(0, RAND_MAX);
|
||||
std::uniform_int_distribution<unsigned int> dist(0, RAND_MAX);
|
||||
return dist(generator_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user