18#ifndef _DECAF_SECURITY_SECURERANDOM_H_
19#define _DECAF_SECURITY_SECURERANDOM_H_
37 std::auto_ptr<SecureRandomSpi> secureRandom;
84 virtual void nextBytes(std::vector<unsigned char>& buf);
86 virtual void nextBytes(
unsigned char* buf,
int size);
88 virtual void setSeed(
unsigned long long seed);
97 virtual void setSeed(
const std::vector<unsigned char>& seed);
111 virtual void setSeed(
const unsigned char* seed,
int size);
SecureRandom()
Creates a new instance of a secure random number generator that implements the default random number ...
virtual void setSeed(const unsigned char *seed, int size)
Supplements or sets the seed of this secure random number generator, calls to this method never reduc...
virtual void setSeed(const std::vector< unsigned char > &seed)
Supplements or sets the seed of this secure random number generator, calls to this method never reduc...
SecureRandom(const unsigned char *seed, int size)
Creates a new instance of a secure random number generator that implements the default random number ...
SecureRandom(const std::vector< unsigned char > &seed)
Creates a new instance of a secure random number generator that implements the default random number ...
virtual int next(int bits)
Answers a pseudo-random uniformly distributed int value of the number of bits specified by the argume...
virtual void setSeed(unsigned long long seed)
Modifies the seed using linear congruential formula presented in The Art of Computer Programming,...
virtual void nextBytes(std::vector< unsigned char > &buf)
Modifies the byte array by a random sequence of bytes generated by this random number generator.
virtual void nextBytes(unsigned char *buf, int size)
Modifies the byte array by a random sequence of bytes generated by this random number generator.
Random Value Generator which is used to generate a stream of pseudorandom numbers.
Definition Random.h:37
#define DECAF_API
Definition Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25