forked from ak-fortuna/fortuna
chore(generator): directly reference std methods
instead of using "std::method" for cout and endl
This commit is contained in:
parent
2f2f47da01
commit
9a9b81769f
|
@ -53,8 +53,6 @@ auto Generator::reseed(const std::string& s) -> void {
|
|||
|
||||
auto Generator::do_sha(const std::string& k_n_s) -> std::string {
|
||||
/* do sha256 */
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using CryptoPP::HexEncoder;
|
||||
using CryptoPP::HashFilter;
|
||||
using CryptoPP::StringSink;
|
||||
|
@ -69,7 +67,7 @@ auto Generator::do_sha(const std::string& k_n_s) -> std::string {
|
|||
new HashFilter(sha2_256,new HexEncoder(new StringSink(digest),false))
|
||||
);
|
||||
assert(digest.compare("bbc093b9819f87c7fa17f135d95ad07ad830ad4a8e74ff0c609709809bf1f1e0")==0);
|
||||
cout << digest << endl;
|
||||
std::cout << digest << std::endl;
|
||||
|
||||
digest.erase();
|
||||
|
||||
|
@ -77,7 +75,7 @@ auto Generator::do_sha(const std::string& k_n_s) -> std::string {
|
|||
new HashFilter(sha3_256,new HexEncoder(new StringSink(digest),false))
|
||||
);
|
||||
assert(digest.compare("8eccfbbbc9df48b4272e6237ce45aad8fbe59629b4963c4dcda5716e61bb34e1")==0);
|
||||
cout << digest << endl;
|
||||
std::cout << digest << std::endl;
|
||||
|
||||
// return digest;
|
||||
// TODO(me)
|
||||
|
|
Loading…
Reference in New Issue