diff options
author | Gav Wood <i@gavwood.com> | 2014-10-19 02:17:19 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-10-19 02:17:19 +0800 |
commit | b2e085c7d6f272d2b06a66ebce01259ac99ac9c6 (patch) | |
tree | 84160162e1c7f59d643cc569e7939a2f0660a50f /createRandomTest.cpp | |
parent | 65e46b62be6d61ab87bbb76fe749be3c540a1f0d (diff) | |
download | dexon-solidity-b2e085c7d6f272d2b06a66ebce01259ac99ac9c6.tar.gz dexon-solidity-b2e085c7d6f272d2b06a66ebce01259ac99ac9c6.tar.zst dexon-solidity-b2e085c7d6f272d2b06a66ebce01259ac99ac9c6.zip |
In this house, we use std::chrono!
Fix #395.
Diffstat (limited to 'createRandomTest.cpp')
-rw-r--r-- | createRandomTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/createRandomTest.cpp b/createRandomTest.cpp index f1094edc..874869a5 100644 --- a/createRandomTest.cpp +++ b/createRandomTest.cpp @@ -22,8 +22,8 @@ #include <string> #include <iostream> +#include <chrono> #include <boost/random.hpp> -#include <boost/chrono.hpp> #include <boost/filesystem/path.hpp> #pragma GCC diagnostic ignored "-Wunused-parameter" #include <json_spirit/json_spirit.h> @@ -52,8 +52,8 @@ int main(int argc, char *argv[]) boost::random::mt19937 gen; - auto now = boost::chrono::steady_clock::now().time_since_epoch(); - auto timeSinceEpoch = boost::chrono::duration_cast<boost::chrono::nanoseconds>(now).count(); + auto now = chrono::steady_clock::now().time_since_epoch(); + auto timeSinceEpoch = chrono::duration_cast<chrono::nanoseconds>(now).count(); gen.seed(static_cast<unsigned int>(timeSinceEpoch)); boost::random::uniform_int_distribution<> lengthOfCodeDist(2, 16); boost::random::uniform_int_distribution<> opcodeDist(0, 255); |