FastJetSeeds Namespace Reference
Functions |
uint64_t | crc64 (const std::string &str) |
| Find the CRC-64 of a string.
|
uint64_t | crc64addint (uint64_t crc, unsigned int x) |
| Extend a previously-calculated CRC to include an int.
|
Detailed Description
Provide function to properly build random seeds. Recopied from "SGTools/crc64.h" here so this can be used outside Athena.
Function Documentation
uint64_t FastJetSeeds::crc64 |
( |
const std::string & |
str |
) |
|
Find the CRC-64 of a string.
- Parameters:
-
uint64_t FastJetSeeds::crc64addint |
( |
uint64_t |
crc, |
|
|
unsigned int |
x | |
|
) |
| | |
Extend a previously-calculated CRC to include an int.
- Parameters:
-
| crc | The previously-calculated CRC. |
| x | The integer to add. |
- Returns:
- The new CRC.