From 7326b691d301ee605671b7efd9e531685590e7d6 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 6 Apr 2020 16:11:03 +0000 Subject: [PATCH] functional_tests: ensure signatures never reuse a timestamp --- tests/functional_tests/make_test_signature.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functional_tests/make_test_signature.cc b/tests/functional_tests/make_test_signature.cc index 6ac1a6a86..f31816841 100644 --- a/tests/functional_tests/make_test_signature.cc +++ b/tests/functional_tests/make_test_signature.cc @@ -27,6 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +#include "misc_language.h" #include "string_tools.h" #include "rpc/rpc_payment_signature.h" @@ -69,6 +70,7 @@ int main(int argc, const char **argv) while (count--) { std::string signature = cryptonote::make_rpc_payment_signature(skey); + epee::misc_utils::sleep_no_w(1); printf("%s\n", signature.c_str()); } return 0;