Revision f230a1cf deps/v8/src/utils/random-number-generator.h
deps/v8/src/utils/random-number-generator.h | ||
---|---|---|
42 | 42 |
// If two instances of RandomNumberGenerator are created with the same seed, and |
43 | 43 |
// the same sequence of method calls is made for each, they will generate and |
44 | 44 |
// return identical sequences of numbers. |
45 |
// This class uses (probably) weak entropy by default, but it's sufficient, |
|
46 |
// because it is the responsibility of the embedder to install an entropy source |
|
47 |
// using v8::V8::SetEntropySource(), which provides reasonable entropy, see: |
|
48 |
// https://code.google.com/p/v8/issues/detail?id=2905 |
|
45 | 49 |
// This class is neither reentrant nor threadsafe. |
46 | 50 |
|
47 | 51 |
class RandomNumberGenerator V8_FINAL { |
Also available in: Unified diff