X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=ETL%2Ftrunk%2FETL%2F_random.h;h=73efa08c04ad803e60b2b70d27628d84559e88c9;hb=36d01e1527fda602a9aed07d209eb34e6770bca8;hp=0af2dcb36eefec47b7abdb62f207c2919c0c379d;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_random.h b/ETL/trunk/ETL/_random.h index 0af2dcb..73efa08 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)