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

Unified Diff: third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp
diff --git a/third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp b/third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp
index a3b1551f53f393aff153c850960606ac3cf3f584..80e358f5e92553a84a71d0e270d38ed940b25c4f 100644
--- a/third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp
+++ b/third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp
@@ -22,21 +22,17 @@ namespace WTF {
static RandomNumberSource sourceFunction;
-void setRandomSource(RandomNumberSource source)
-{
- sourceFunction = source;
+void setRandomSource(RandomNumberSource source) {
+ sourceFunction = source;
}
-uint32_t cryptographicallyRandomNumber()
-{
- uint32_t result;
- cryptographicallyRandomValues(&result, sizeof(result));
- return result;
+uint32_t cryptographicallyRandomNumber() {
+ uint32_t result;
+ cryptographicallyRandomValues(&result, sizeof(result));
+ return result;
}
-void cryptographicallyRandomValues(void* buffer, size_t length)
-{
- (*sourceFunction)(reinterpret_cast<unsigned char*>(buffer), length);
+void cryptographicallyRandomValues(void* buffer, size_t length) {
+ (*sourceFunction)(reinterpret_cast<unsigned char*>(buffer), length);
}
-
}
« no previous file with comments | « third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.h ('k') | third_party/WebKit/Source/wtf/CurrentTime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698