From 88ebd6ffc1fe227e47cb9ce15f42e50672c26c8f Mon Sep 17 00:00:00 2001 From: kuepper Date: Sat, 1 Oct 2005 14:25:29 +0000 Subject: [PATCH] update for solaris-x86 --- eo/src/utils/eoRNG.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/eo/src/utils/eoRNG.h b/eo/src/utils/eoRNG.h index 0efb2000..a4bbf073 100644 --- a/eo/src/utils/eoRNG.h +++ b/eo/src/utils/eoRNG.h @@ -21,24 +21,23 @@ Contact: todos@geneura.ugr.es, http://geneura.ugr.es */ -// -// uint32_t must be an unsigned integer type capable of holding at least 32 -// bits; exactly 32 should be fastest, but 64 is better on an Alpha with -// GCC at -O3 optimization so try your options and see what's best for you -// - - #ifndef EO_RANDOM_NUMBER_GENERATOR #define EO_RANDOM_NUMBER_GENERATOR -#ifdef HAVE_STDINT_H +// uint32_t is an unsigned integer type capable of holding 32 bits. +// +// In the applicatione here exactly 32 but should typically be fastest, but 64 +// might be better on an Alpha with GCC at -O3 optimization so try your options +// and see what's best for you. +// +// The C99-standard defines uint32_t to be declared in stdint.h, but some +// systmes don't have that and implement it in inttypes.h. +#if (! defined __sun) #include #else -#ifdef HAVE_INTTYPES_H #include -#else -#error Nedd header to define uint32_t. Please contact the EO mailing list. #endif + #include #include "eoPersistent.h" #include "eoObject.h" @@ -52,7 +51,8 @@ number generator MT19937 for generating random numbers. The various member functions implement useful functions for evolutionary algorithms. Included are: rand(), random(), flip() and normal(). -

DOCUMENTATION IN ORIGINAL FILE

+ +

Documentation in original file

This is the ``Mersenne Twister'' random number generator MT19937, which generates pseudorandom integers uniformly distributed in 0..(2^32 - 1) starting