| Index: src/v8.cc
|
| diff --git a/src/v8.cc b/src/v8.cc
|
| index d19e1dce7e4a2bc9537c9419614f2eb48a522637..92d8c98d78b13009cdfb791fb43e5d4c2cf705f2 100644
|
| --- a/src/v8.cc
|
| +++ b/src/v8.cc
|
| @@ -103,7 +103,9 @@ static uint32_t random_seed() {
|
| }
|
|
|
|
|
| -uint32_t V8::Random() {
|
| +uint32_t V8::Random(Isolate* isolate) {
|
| + ASSERT(isolate == Isolate::Current());
|
| + // TODO(isolates): move lo and hi to isolate
|
| // Random number generator using George Marsaglia's MWC algorithm.
|
| static uint32_t hi = 0;
|
| static uint32_t lo = 0;
|
| @@ -140,7 +142,7 @@ typedef union {
|
|
|
|
|
| Object* V8::FillHeapNumberWithRandom(Object* heap_number) {
|
| - uint64_t random_bits = Random();
|
| + uint64_t random_bits = Random(Isolate::Current());
|
| // Make a double* from address (heap_number + sizeof(double)).
|
| double_int_union* r = reinterpret_cast<double_int_union*>(
|
| reinterpret_cast<char*>(heap_number) +
|
|
|