diff options
author | John Wiegley <johnw@newartisans.com> | 2010-03-06 00:57:56 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-03-06 00:57:56 -0500 |
commit | 93e0d8c67a1123d0b4eefcc53d00ba892142fd49 (patch) | |
tree | 74665ef27567dc0b54e64348db49aeee70f0c044 /src/xact.cc | |
parent | b90ce7890647c3f7cfb1103222df011a4534a1c9 (diff) | |
download | fork-ledger-93e0d8c67a1123d0b4eefcc53d00ba892142fd49.tar.gz fork-ledger-93e0d8c67a1123d0b4eefcc53d00ba892142fd49.tar.bz2 fork-ledger-93e0d8c67a1123d0b4eefcc53d00ba892142fd49.zip |
Abstracted an sha1sum() function
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 7 |
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 { |