/usr/include/osl/hash/hashRandomPair.h is in libosl-dev 0.6.0-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | /* hashRandom.h
*/
#ifndef OSL_HASHRANDOMPAIR_H
#define OSL_HASHRANDOMPAIR_H
#include "osl/hash/hashKey.h"
namespace osl
{
namespace hash
{
class HashRandomPair
{
public:
static const size_t Length = 0x100000;
private:
static std::pair<char,char> table[Length];
static bool is_initialized;
public:
static void setUp(unsigned int seed, unsigned int prob100);
static std::pair<char,char> value(size_t key)
{
return table[key % Length];
}
static std::pair<char,char> value(const HashKey& key)
{
return value(key.signature());
}
static bool initialized() { return is_initialized; }
};
}
using hash::HashRandomPair;
}
#endif /* OSL_HASHRANDOMPAIR_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|