Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: dart/runtime/vm/random.cc

Issue 60733003: Version 0.8.10.6 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698