The Gaudi Framework  v30r3 (a5ef0a68)
QuasiRandom.h
Go to the documentation of this file.
1 #ifndef GAUDIUTILS_QUASIRANDOM_H
2 #define GAUDIUTILS_QUASIRANDOM_H 1
3 
4 // Include files
5 #include <string>
6 
7 // boost
8 #include <boost/integer/integer_mask.hpp>
9 
26 namespace Gaudi
27 {
28  namespace Utils
29  {
30  namespace QuasiRandom
31  {
32 
35 
37  uint32_t mix32( uint32_t state, uint32_t extra );
38 
40  uint32_t mix64( uint32_t state, uint64_t extra );
41 
43  uint32_t mixString( uint32_t state, const std::string& extra );
44  }
45  }
46 }
47 #endif // GAUDIUTILS_QUASIRANDOM_H
uint32_t mixString(uint32_t state, const std::string &extra)
mix some &#39;extra&#39; entropy into &#39;state&#39; and return result
Definition: QuasiRandom.cpp:36
uint32_t mix(uint32_t state)
Create a hash with a large avalanche effect from a 32 bit integer.
Definition: QuasiRandom.cpp:14
unsigned long long uint64_t
Definition: instrset.h:143
STL class.
unsigned int uint32_t
Definition: instrset.h:141
uint32_t mix32(uint32_t state, uint32_t extra)
mix some &#39;extra&#39; entropy into &#39;state&#39; and return result
Definition: QuasiRandom.cpp:27
uint32_t mix64(uint32_t state, uint64_t extra)
mix some &#39;extra&#39; entropy into &#39;state&#39; and return result
Definition: QuasiRandom.cpp:29
Helper functions to set/get the application return code.
Definition: __init__.py:1