summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 5dbf8c70..f78ea301 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -454,12 +454,7 @@ string xact_t::idstring() const
string xact_t::id() const
{
- SHA1 sha;
- sha.Reset();
- sha << idstring().c_str();
- uint_least32_t message_digest[5];
- sha.Result(message_digest);
- return to_hex(message_digest, 5);
+ return sha1sum(idstring());
}
namespace {