From 0ac480a0bd74cf0f7edf2786b9cc13facae156d0 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 13 Jan 2015 11:49:59 -0800 Subject: [PATCH] Fix extra increment in GenerateRootDeterministicKey --- src/ripple/crypto/impl/GenerateDeterministicKey.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ripple/crypto/impl/GenerateDeterministicKey.cpp b/src/ripple/crypto/impl/GenerateDeterministicKey.cpp index 797159e0f..33d59814c 100644 --- a/src/ripple/crypto/impl/GenerateDeterministicKey.cpp +++ b/src/ripple/crypto/impl/GenerateDeterministicKey.cpp @@ -100,7 +100,6 @@ ec_key GenerateRootDeterministicKey (uint128 const& seed) std::array buf; std::copy(seed.begin(), seed.end(), buf.begin()); copy_uint32 (buf.begin() + 16, seq++); - ++seq; uint256 root = getSHA512Half (buf.data(), buf.size()); std::fill (buf.begin(), buf.end(), 0); // security erase privKey = BN_bin2bn ((const unsigned char*) &root, sizeof (root), privKey);