diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/SimpleRandomizer.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/SimpleRandomizer.h')
| -rw-r--r-- | src/SimpleRandomizer.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/SimpleRandomizer.h b/src/SimpleRandomizer.h index b3896ebd..879b2a06 100644 --- a/src/SimpleRandomizer.h +++ b/src/SimpleRandomizer.h @@ -41,7 +41,7 @@ #include <random> #ifdef __MINGW32__ -# include <wincrypt.h> +#include <wincrypt.h> #endif namespace aria2 { @@ -70,12 +70,9 @@ public: */ virtual long int getRandomNumber(long int to) CXX11_OVERRIDE; - void getRandomBytes(unsigned char *buf, size_t len); + void getRandomBytes(unsigned char* buf, size_t len); - long int operator()(long int to) - { - return getRandomNumber(to); - } + long int operator()(long int to) { return getRandomNumber(to); } result_type operator()() { @@ -94,10 +91,7 @@ public: return std::numeric_limits<result_type>::max(); } - static double entropy() - { - return 0.0; - } + static double entropy() { return 0.0; } }; } // namespace aria2 |
