Skip to content

Commit

Permalink
random now uses data::size() instead of .size()
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKrawisz committed Aug 24, 2022
1 parent d56d30c commit 07e2eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/data/crypto/hash/digest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace data::crypto {

template <size_t s>
struct digest : math::uint<endian::little, s> {
static const uint32 size = s;

using math::uint<endian::little, s>::uint;

Expand Down
3 changes: 2 additions & 1 deletion include/data/crypto/random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <data/iterable.hpp>
#include <data/cross.hpp>
#include <data/size.hpp>

namespace data::crypto {

Expand All @@ -33,7 +34,7 @@ namespace data::crypto {

template <typename X>
random& operator>>(X& x) {
get(x.data(), x.size());
get(x.data(), data::size(x));
return *this;
}

Expand Down

0 comments on commit 07e2eb3

Please sign in to comment.