00001 /* hey emacs! -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode: nil -*- */ 00002 /* 00003 * $Id: DdtRand.h,v 1.1 2001/11/24 21:26:16 benoit Exp $ 00004 * 00005 * Copyright (c) 2001 Benoit Joly <benoit@dhis.net> 00006 * 00007 * DDT comes with ABSOLUTELY NO WARRANTY and is licenced under the 00008 * GNU General Public License (version 2 or later). This license 00009 * can be retrieved from http://www.gnu.org/copyleft/gnu.html. 00010 * 00011 */ 00012 00013 #ifndef DDTRAND_H 00014 #define DDTRAND_H 00015 00016 extern "C" 00017 { 00018 #include <stddef.h> 00019 #include <gcrypt.h> 00020 } 00021 00022 class DdtRand 00023 { 00024 public: 00025 DdtRand(); 00026 static void randomBytes(unsigned char *buf, int length); 00027 00028 private: 00029 }; 00030 00031 #endif
1.4.4