Re: HAVE_RANDOM ?

2001-11-28 Thread Hrvoje Niksic
Ian Abbott [EMAIL PROTECTED] writes: On 27 Nov 2001, at 15:16, Hrvoje Niksic wrote: So, does anyone know about the portability of rand()? It's in the ANSI/ISO C spec (ISO 9899). It's always been in UNIX (or at least it's been in there since UNIX 7th Edition), and I should think it's

Re: HAVE_RANDOM ?

2001-11-27 Thread Hrvoje Niksic
Herold Heiko [EMAIL PROTECTED] writes: In the current cvs sources HAVE_RANDOM is mentioned in Changelog, used in a not exactly obvious way in main.c at line 577, but nowhere else. Is this a work in progress or a leftover of previous code ? Backup code for systems without 'random()' (hint

Re: HAVE_RANDOM ?

2001-11-27 Thread Hrvoje Niksic
Herold Heiko [EMAIL PROTECTED] writes: What about aother check, use random() if available, otherwise rand() if available, otherwise your barebone generator ? On the other hand, for what it is used currently probably there isn't the need for that complication. Exactly. If there is a

Re: HAVE_RANDOM ?

2001-11-27 Thread Ian Abbott
On 27 Nov 2001, at 15:16, Hrvoje Niksic wrote: So, does anyone know about the portability of rand()? It's in the ANSI/ISO C spec (ISO 9899). It's always been in UNIX (or at least it's been in there since UNIX 7th Edition), and I should think it's always been in the MS-DOS compilers, but I

Re: HAVE_RANDOM ?

2001-11-27 Thread T. Bharath
VC++ has it Generates a pseudorandom number. Routine Required Header rand stdlib.h int rand( void ); Libraries All versions of the C run-time libraries. Return Values rand returns a pseudorandom number, as described above. There is no error return. Remarks The rand function returns a

HAVE_RANDOM ?

2001-11-26 Thread Herold Heiko
In the current cvs sources HAVE_RANDOM is mentioned in Changelog, used in a not exactly obvious way in main.c at line 577, but nowhere else. Is this a work in progress or a leftover of previous code ? Backup code for systems without 'random()' (hint hint VC++) is needed :) Heiko -- -- PREVINET