Chromium Code Reviews| Index: src/v8.h |
| =================================================================== |
| --- src/v8.h (revision 2155) |
| +++ src/v8.h (working copy) |
| @@ -80,10 +80,10 @@ |
| public: |
| // Global actions. |
| - // If Initialize is called with des == NULL, the |
| - // initial state is created from scratch. If a non-null Deserializer |
| - // is given, the initial state is created by reading the |
| - // deserialized data into an empty heap. |
| + // If Initialize is called with des == NULL, the initial state is |
| + // created from scratch. If a non-null Deserializer is given, the |
| + // initial state is created by reading the deserialized data into an |
| + // empty heap. |
| static bool Initialize(Deserializer* des); |
| static void TearDown(); |
| static bool IsRunning() { return is_running_; } |
| @@ -93,6 +93,11 @@ |
| // Report process out of memory. Implementation found in api.cc. |
| static void FatalProcessOutOfMemory(const char* location); |
| + |
| + // Random number generation support. Not cryptographically safe. |
| + static uint32_t Random(); |
|
Mads Ager (chromium)
2009/06/15 07:22:56
Could these be in utils?
|
| + static Smi* RandomPositiveSmi(); |
| + |
| private: |
| // True if engine is currently running |
| static bool is_running_; |