/usr/include/zorp/random.h is in libzorpll-6.0-10-dev 6.0.10.0-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 39 40 41 42 43 44 | /***************************************************************************
*
* This file is covered by a dual licence. You can choose whether you
* want to use it according to the terms of the GNU GPL version 2, or
* under the terms of Zorp Professional Firewall System EULA located
* on the Zorp installation CD.
*
***************************************************************************/
#ifndef ZORPLIB_RANDOM_H_INCLUDED
#define ZORPLIB_RANDOM_H_INCLUDED
#include <glib.h>
#include <vector>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Strength of random number generation algorithm.
**/
typedef enum
{
Z_RANDOM_STRONG=0,
Z_RANDOM_BASIC,
Z_RANDOM_WEAK,
Z_RANDOM_NUM_STRENGTHS
} ZRandomStrength;
gboolean
z_random_sequence_get(ZRandomStrength strength, guchar *target, gsize target_len);
gboolean
z_random_sequence_get_bounded(ZRandomStrength strength,
guchar *target, gsize target_len,
guchar min, guchar max);
#ifdef __cplusplus
}
#endif
std::vector<unsigned int> z_random_sequence_create(const unsigned int len, const unsigned int min);
#endif
|