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

Unified Diff: Source/core/platform/UUID.cpp

Issue 14178012: Remove the USE(OS_RANDOMNESS) guard. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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/core/page/Crypto.cpp ('k') | Source/wtf/CryptographicallyRandomNumber.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/UUID.cpp
diff --git a/Source/core/platform/UUID.cpp b/Source/core/platform/UUID.cpp
index d3fe447daf2e54376518c1a64ff6f3e87634b8a1..4a953dc8f75cf5ee73074e49ac5b70f3b01467c1 100644
--- a/Source/core/platform/UUID.cpp
+++ b/Source/core/platform/UUID.cpp
@@ -31,7 +31,6 @@
#include "config.h"
#include "UUID.h"
-#include "NotImplemented.h"
#include <wtf/CryptographicallyRandomNumber.h>
#include <wtf/HexNumber.h>
#include <wtf/text/StringBuilder.h>
@@ -40,7 +39,6 @@ namespace WebCore {
String createCanonicalUUIDString()
{
-#if USE(OS_RANDOMNESS)
unsigned randomData[4];
cryptographicallyRandomValues(reinterpret_cast<unsigned char*>(randomData), sizeof(randomData));
@@ -59,10 +57,6 @@ String createCanonicalUUIDString()
appendUnsignedAsHexFixedSize(randomData[2] & 0x0000ffff, builder, 4, Lowercase);
appendUnsignedAsHexFixedSize(randomData[3], builder, 8, Lowercase);
return builder.toString();
-#else
- notImplemented();
- return String();
-#endif
}
}
« no previous file with comments | « Source/core/page/Crypto.cpp ('k') | Source/wtf/CryptographicallyRandomNumber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698