| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/random.h" | 5 #include "vm/random.h" |
| 6 #include "vm/flags.h" | 6 #include "vm/flags.h" |
| 7 #include "vm/isolate.h" | 7 #include "vm/isolate.h" |
| 8 | 8 |
| 9 namespace dart { | 9 namespace dart { |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 uint32_t Random::NextUInt32() { | 53 uint32_t Random::NextUInt32() { |
| 54 const uint64_t MASK_32 = 0xffffffff; | 54 const uint64_t MASK_32 = 0xffffffff; |
| 55 NextState(); | 55 NextState(); |
| 56 return static_cast<uint32_t>(_state & MASK_32); | 56 return static_cast<uint32_t>(_state & MASK_32); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace dart | 59 } // namespace dart |
| OLD | NEW |