Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2520
1 vote
1 answer
81 views

How to check number of std::hash locally?

" #include "utils.hpp" uint8_t compute_random_roll(const std::string& seed1, const std::string& seed2) { size_t hash = 0; //hash_combine(hash, sha256_to_hex(seed1)); //hash_combine(hash, sha1 … _to_hex(seed2)); hash_combine(hash, seed1); hash_combine(hash, seed2); return hash % 100 + 1; } CONTRACT hello : public eosio::contract { public: using contract::contract; ACTION …
liushiqi9's user avatar
1 vote

How to check number of std::hash locally?

Apparently, the reason I cannot reproduce the hash is because I used std::hash inside hash_combine function. … So now I use MurmurHash2 directly and I am able to reproduce the Hash number. …
liushiqi9's user avatar