urandom.h
//
// Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
//
// See accompanying file COPYING.TXT file for licensing details.
//
#ifndef CPPCMS_URANDOM_H
#define CPPCMS_URANDOM_H
#include <cppcms/defs.h>
#include <booster/hold_ptr.h>
#include <booster/noncopyable.h>
namespace cppcms {
class CPPCMS_API urandom_device : public booster::noncopyable {
public:
urandom_device();
~urandom_device();
void generate(void *ptr,unsigned n);
private:
struct _data;
booster::hold_ptr<_data> d;
};
}
#endif
booster::hold_ptr< _data >
cppcms::urandom_device
High entropy random number generator.
Definition: urandom.h:23
booster::noncopyable
This class makes impossible to copy any class derived from this one.
Definition: noncopyable.h:15