This commit is contained in:
bthomee
2025-07-10 18:20:07 +00:00
parent 542236acb3
commit 39032171d1
1427 changed files with 18077 additions and 18209 deletions

View File

@@ -102,90 +102,82 @@ $(function() {
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;xrpl/beast/hash/xxhasher.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/functional.html">functional</a>&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/random.html">random</a>&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/unordered_map.html">unordered_map</a>&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/unordered_set.html">unordered_set</a>&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/random.html">random</a>&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">namespace </span>detail {</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespaceripple_1_1detail.html#ab71dc38912727712056be6817a81bcd1"> 35</a></span><span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">seed_pair</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;std::uint64_t, std::uint64_t&gt;</a>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">namespace </span>detail {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="namespaceripple_1_1detail.html#ab71dc38912727712056be6817a81bcd1"> 39</a></span><span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">seed_pair</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;std::uint64_t, std::uint64_t&gt;</a>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> = true&gt;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">seed_pair</a></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="namespaceripple_1_1detail.html#a249a9f5f4201996e85c94a88e2364843"> 43</a></span><a class="code hl_function" href="namespaceripple_1_1detail.html#a249a9f5f4201996e85c94a88e2364843">make_seed_pair</a>() noexcept</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>{</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">struct </span>state_t</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> mutex;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/numeric/random/random_device.html">std::random_device</a> rng;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine.html">std::mt19937_64</a> gen;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution.html">std::uniform_int_distribution&lt;std::uint64_t&gt;</a> dist;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> state_t() : gen(rng())</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// state_t(state_t const&amp;) = delete;</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// state_t&amp; operator=(state_t const&amp;) = delete;</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> };</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">static</span> state_t state;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(state.mutex);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">return</span> {state.dist(state.gen), state.dist(state.gen)};</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>}</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>} <span class="comment">// namespace detail</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> HashAlgorithm = beast::xxhasher&gt;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html"> 96</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1hardened__hash.html">hardened_hash</a></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span>{</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3"> 99</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">detail::seed_pair</a> <a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732"> 102</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">result_type</a> = <span class="keyword">typename</span> HashAlgorithm::result_type;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> = true&gt;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">seed_pair</a></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="namespaceripple_1_1detail.html#a249a9f5f4201996e85c94a88e2364843"> 39</a></span><a class="code hl_function" href="namespaceripple_1_1detail.html#a249a9f5f4201996e85c94a88e2364843">make_seed_pair</a>() noexcept</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>{</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">struct </span>state_t</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> mutex;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/numeric/random/random_device.html">std::random_device</a> rng;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine.html">std::mt19937_64</a> gen;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution.html">std::uniform_int_distribution&lt;std::uint64_t&gt;</a> dist;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> state_t() : gen(rng())</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> {</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> }</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// state_t(state_t const&amp;) = delete;</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// state_t&amp; operator=(state_t const&amp;) = delete;</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> };</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">static</span> state_t state;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(state.mutex);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> {state.dist(state.gen), state.dist(state.gen)};</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span>}</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>} <span class="comment">// namespace detail</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> HashAlgorithm = beast::xxhasher&gt;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html"> 92</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1hardened__hash.html">hardened_hash</a></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span>{</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3"> 95</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">detail::seed_pair</a> <a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732"> 98</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">result_type</a> = <span class="keyword">typename</span> HashAlgorithm::result_type;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#ac5fe30a6c4b1f14433a2598323cf8ddf"> 100</a></span> <a class="code hl_function" href="classripple_1_1hardened__hash.html#ac5fe30a6c4b1f14433a2598323cf8ddf">hardened_hash</a>() : <a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>(detail::make_seed_pair&lt;&gt;())</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> {</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> }</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#ac5fe30a6c4b1f14433a2598323cf8ddf"> 104</a></span> <a class="code hl_function" href="classripple_1_1hardened__hash.html#ac5fe30a6c4b1f14433a2598323cf8ddf">hardened_hash</a>() : <a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>(detail::make_seed_pair&lt;&gt;())</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> {</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_typedef" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">result_type</a></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#addb99e4c2034d9eb2027345e4f50ce34"> 110</a></span> <a class="code hl_function" href="classripple_1_1hardened__hash.html#addb99e4c2034d9eb2027345e4f50ce34">operator()</a>(T <span class="keyword">const</span>&amp; t) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> HashAlgorithm h(<a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>.<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">first</a>, <a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>.<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">second</a>);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_function" href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">hash_append</a>(h, t);</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">result_type</a><span class="keyword">&gt;</span>(h);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>};</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html"><div class="ttname"><a href="classripple_1_1hardened__hash.html">ripple::hardened_hash</a></div><div class="ttdoc">Seed functor once per construction.</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00096">hardened_hash.h:97</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_a0447c9ec0860439ed67f13cd9d01b732"><div class="ttname"><a href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">ripple::hardened_hash::result_type</a></div><div class="ttdeci">typename HashAlgorithm::result_type result_type</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00102">hardened_hash.h:102</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_a3765aed06bf6e6296439d0fc70c709a3"><div class="ttname"><a href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">ripple::hardened_hash::m_seeds</a></div><div class="ttdeci">detail::seed_pair m_seeds</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00099">hardened_hash.h:99</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_ac5fe30a6c4b1f14433a2598323cf8ddf"><div class="ttname"><a href="classripple_1_1hardened__hash.html#ac5fe30a6c4b1f14433a2598323cf8ddf">ripple::hardened_hash::hardened_hash</a></div><div class="ttdeci">hardened_hash()</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00104">hardened_hash.h:104</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_addb99e4c2034d9eb2027345e4f50ce34"><div class="ttname"><a href="classripple_1_1hardened__hash.html#addb99e4c2034d9eb2027345e4f50ce34">ripple::hardened_hash::operator()</a></div><div class="ttdeci">result_type operator()(T const &amp;t) const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00110">hardened_hash.h:110</a></div></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_typedef" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">result_type</a></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1hardened__hash.html#addb99e4c2034d9eb2027345e4f50ce34"> 106</a></span> <a class="code hl_function" href="classripple_1_1hardened__hash.html#addb99e4c2034d9eb2027345e4f50ce34">operator()</a>(T <span class="keyword">const</span>&amp; t) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> {</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> HashAlgorithm h(<a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>.<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">first</a>, <a class="code hl_variable" href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">m_seeds</a>.<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">second</a>);</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_function" href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">hash_append</a>(h, t);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">result_type</a><span class="keyword">&gt;</span>(h);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> }</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span>};</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html"><div class="ttname"><a href="classripple_1_1hardened__hash.html">ripple::hardened_hash</a></div><div class="ttdoc">Seed functor once per construction.</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00092">hardened_hash.h:93</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_a0447c9ec0860439ed67f13cd9d01b732"><div class="ttname"><a href="classripple_1_1hardened__hash.html#a0447c9ec0860439ed67f13cd9d01b732">ripple::hardened_hash::result_type</a></div><div class="ttdeci">typename HashAlgorithm::result_type result_type</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00098">hardened_hash.h:98</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_a3765aed06bf6e6296439d0fc70c709a3"><div class="ttname"><a href="classripple_1_1hardened__hash.html#a3765aed06bf6e6296439d0fc70c709a3">ripple::hardened_hash::m_seeds</a></div><div class="ttdeci">detail::seed_pair m_seeds</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00095">hardened_hash.h:95</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_ac5fe30a6c4b1f14433a2598323cf8ddf"><div class="ttname"><a href="classripple_1_1hardened__hash.html#ac5fe30a6c4b1f14433a2598323cf8ddf">ripple::hardened_hash::hardened_hash</a></div><div class="ttdeci">hardened_hash()</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00100">hardened_hash.h:100</a></div></div>
<div class="ttc" id="aclassripple_1_1hardened__hash_html_addb99e4c2034d9eb2027345e4f50ce34"><div class="ttname"><a href="classripple_1_1hardened__hash.html#addb99e4c2034d9eb2027345e4f50ce34">ripple::hardened_hash::operator()</a></div><div class="ttdeci">result_type operator()(T const &amp;t) const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00106">hardened_hash.h:106</a></div></div>
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
<div class="ttc" id="afunctional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/functional.html">functional</a></div></div>
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div></div>
<div class="ttc" id="amersenne_twister_engine_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine.html">std::mt19937_64</a></div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
<div class="ttc" id="anamespaceripple_1_1detail_html_a249a9f5f4201996e85c94a88e2364843"><div class="ttname"><a href="namespaceripple_1_1detail.html#a249a9f5f4201996e85c94a88e2364843">ripple::detail::make_seed_pair</a></div><div class="ttdeci">seed_pair make_seed_pair() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00043">hardened_hash.h:43</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
<div class="ttc" id="anamespaceripple_1_1detail_html_a249a9f5f4201996e85c94a88e2364843"><div class="ttname"><a href="namespaceripple_1_1detail.html#a249a9f5f4201996e85c94a88e2364843">ripple::detail::make_seed_pair</a></div><div class="ttdeci">seed_pair make_seed_pair() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="hardened__hash_8h_source.html#l00039">hardened_hash.h:39</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a06da0e52773c5c0841994317a3d5e3d0"><div class="ttname"><a href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">ripple::hash_append</a></div><div class="ttdeci">void hash_append(Hasher &amp;h, Slice const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00199">Slice.h:199</a></div></div>
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt; std::uint64_t, std::uint64_t &gt;</a></div></div>
<div class="ttc" id="arandom_device_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/random_device.html">std::random_device</a></div></div>
<div class="ttc" id="arandom_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/random.html">random</a></div></div>
<div class="ttc" id="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
<div class="ttc" id="auniform_int_distribution_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution.html">std::uniform_int_distribution</a></div></div>
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/unordered_map.html">unordered_map</a></div></div>
<div class="ttc" id="aunordered_set_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/unordered_set.html">unordered_set</a></div></div>
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->