mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix checksum/sha1
This commit is contained in:
parent
48adf49ef3
commit
30241d3be6
2 changed files with 141 additions and 70 deletions
|
@ -15,6 +15,7 @@ namespace sprout {
|
|||
public:
|
||||
typedef sprout::uuids::uuid result_type;
|
||||
private:
|
||||
typedef sprout::sha1 const sha1_const_type;
|
||||
typedef typename result_type::value_type value_type;
|
||||
private:
|
||||
sprout::sha1 sha_;
|
||||
|
@ -44,10 +45,10 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
SPROUT_CONSTEXPR name_generator()
|
||||
: sha_(sprout::sha1().process_range(sprout::uuids::uuid{{0}}))
|
||||
: sha_(sha1_const_type().process_range(sprout::uuids::uuid{{0}}))
|
||||
{}
|
||||
explicit SPROUT_CONSTEXPR name_generator(sprout::uuids::uuid const& namespace_uuid)
|
||||
: sha_(sprout::sha1().process_range(namespace_uuid))
|
||||
: sha_(sha1_const_type().process_range(namespace_uuid))
|
||||
{}
|
||||
template<typename Elem, std::size_t N, typename Traits>
|
||||
SPROUT_CONSTEXPR result_type operator()(sprout::basic_string<Elem, N, Traits> const& name) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue