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

Unified Diff: runtime/vm/port.h

Issue 217693002: - Make ports be less predictable. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/port.h
===================================================================
--- runtime/vm/port.h (revision 34525)
+++ runtime/vm/port.h (working copy)
@@ -8,6 +8,7 @@
#include "include/dart_api.h"
#include "vm/allocation.h"
#include "vm/globals.h"
+#include "vm/random.h"
namespace dart {
@@ -82,7 +83,7 @@
static intptr_t used_;
static intptr_t deleted_;
- static Dart_Port next_port_;
+ static Random* prng_;
};
} // namespace dart
« no previous file with comments | « runtime/vm/message_handler.cc ('k') | runtime/vm/port.cc » ('j') | runtime/vm/port.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698