The Gaudi Framework master (934d2c3c)
Loading...
Searching...
No Matches
QuasiRandom.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2026 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13// Include files
14#include <cstdint>
15#include <string>
16
35 std::uint32_t mix( std::uint32_t state );
36
38 std::uint32_t mix32( std::uint32_t state, std::uint32_t extra );
39
41 std::uint32_t mix64( std::uint32_t state, uint64_t extra );
42
44 std::uint32_t mixString( std::uint32_t state, const std::string& extra );
45} // namespace Gaudi::Utils::QuasiRandom
Create a hash with a large avalanche effect from 32 or 64 bit integers or a string.
Definition QuasiRandom.h:33
std::uint32_t mix64(std::uint32_t state, uint64_t extra)
mix some 'extra' entropy into 'state' and return result
std::uint32_t mix(std::uint32_t state)
Create a hash with a large avalanche effect from a 32 bit integer.
std::uint32_t mixString(std::uint32_t state, const std::string &extra)
mix some 'extra' entropy into 'state' and return result
std::uint32_t mix32(std::uint32_t state, std::uint32_t extra)
mix some 'extra' entropy into 'state' and return result