mirror of
https://github.com/google/leveldb.git
synced 2025-06-07 18:02:42 +08:00
Merge aa2b55d88d
into ac691084fd
This commit is contained in:
commit
3264364859
@ -42,7 +42,7 @@ class Random {
|
|||||||
if (seed_ > M) {
|
if (seed_ > M) {
|
||||||
seed_ -= M;
|
seed_ -= M;
|
||||||
}
|
}
|
||||||
return seed_;
|
return seed_ - 1;
|
||||||
}
|
}
|
||||||
// Returns a uniformly distributed value in the range [0..n-1]
|
// Returns a uniformly distributed value in the range [0..n-1]
|
||||||
// REQUIRES: n > 0
|
// REQUIRES: n > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user