/usr/include/osl/hash/hashRandom.h is in libosl-dev 0.6.0-3.3.
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 | /* hashRandom.h
*/
#ifndef OSL_HASHRANDOM_H
#define OSL_HASHRANDOM_H
#include "osl/hash/hashKey.h"
#include "osl/misc/carray.h"
namespace osl
{
namespace hash
{
class HashRandom
{
public:
static const size_t Length = 0x1000;
private:
static CArray<int,Length> table;
public:
static void setUp(double sigma);
static int value(size_t key)
{
return table[key % Length];
}
static int value(const HashKey& key)
{
return value(key.signature());
}
};
}
using hash::HashRandom;
}
#endif /* OSL_HASHRANDOM_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|