Index: test/cctest/test-random-number-generator.cc |
diff --git a/test/cctest/test-random-number-generator.cc b/test/cctest/test-random-number-generator.cc |
index cc9493041c438bd518f5ee889f15625b243dae0e..0ebe09122d3ac4a07d663edba25433d39e34dc63 100644 |
--- a/test/cctest/test-random-number-generator.cc |
+++ b/test/cctest/test-random-number-generator.cc |
@@ -39,7 +39,9 @@ static const int64_t kRandomSeeds[] = {-1, 1, 42, 100, 1234567890, 987654321}; |
TEST(RandomSeedFlagIsUsed) { |
for (unsigned n = 0; n < arraysize(kRandomSeeds); ++n) { |
FLAG_random_seed = static_cast<int>(kRandomSeeds[n]); |
- v8::Isolate* i = v8::Isolate::New(); |
+ v8::Isolate::CreateParams create_params; |
+ create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); |
+ v8::Isolate* i = v8::Isolate::New(create_params); |
v8::base::RandomNumberGenerator& rng = |
*reinterpret_cast<Isolate*>(i)->random_number_generator(); |
CHECK_EQ(kRandomSeeds[n], rng.initial_seed()); |