| 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);
|
| }
|
| -
|
| }
|
|
|