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

Unified Diff: Source/wtf/RandomNumberSeed.h

Issue 23600014: Rename OS(UNIX) to OS(POSIX) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/wtf/ProcessID.h ('k') | Source/wtf/StringExtras.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/RandomNumberSeed.h
diff --git a/Source/wtf/RandomNumberSeed.h b/Source/wtf/RandomNumberSeed.h
index 66d746128a6d1098d004ac4e4122b02001748e15..1fbe4cf33de3cdbb0507752acbcdb29fefe649cb 100644
--- a/Source/wtf/RandomNumberSeed.h
+++ b/Source/wtf/RandomNumberSeed.h
@@ -34,7 +34,7 @@
#include <sys/time.h>
#endif
-#if OS(UNIX)
+#if OS(POSIX)
#include <sys/types.h>
#include <unistd.h>
#endif
@@ -47,7 +47,7 @@ inline void initializeRandomNumberGenerator()
// On Darwin we use arc4random which initialises itself.
#elif COMPILER(MSVC) && defined(_CRT_RAND_S)
// On Windows we use rand_s which initialises itself
-#elif OS(UNIX)
+#elif OS(POSIX)
// srandomdev is not guaranteed to exist on linux so we use this poor seed, this should be improved
timeval time;
gettimeofday(&time, 0);
« no previous file with comments | « Source/wtf/ProcessID.h ('k') | Source/wtf/StringExtras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698