X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_random.h;h=c358dfca09f66b41b21fbd1564faafbe39c187a9;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=0af2dcb36eefec47b7abdb62f207c2919c0c379d;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_random.h b/ETL/trunk/ETL/_random.h index 0af2dcb..c358dfc 100644 --- a/ETL/trunk/ETL/_random.h +++ b/ETL/trunk/ETL/_random.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Random Number Generator Class Implementation -** $Id: _random.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -41,28 +41,28 @@ class rand_source_xor public: typedef int seed_type; typedef short value_type; - + private: short entropy_pool[256]; int pool_index; - + public: random() { seed(0); mod=offset=0; } - + void seed(const seed_type &x) { pool_index=0; } - + void add_entropy(value_type entropy) { int i; for(i=0;iPOOL_SIZE)