> I've always wondered why OBRandom exists -- I would assume that the > built in standard random number generators would be decent on each > platform?
No, that's not true. In fact, the BSD and Mac "man" pages for rand() say: "-- bad random number generator" > Is it common to rewrite random number generators? Perhaps we > should take a look at the common implementations with the same test > and then just use stdlib if they're ok. OBRandom allows you to use the system random number generator if you wish, and if available, will use the "sranddev" function available on some platforms which pulls from the hardware random generator. Feel free to re-implement OBRandom if you want -- there are a number of methods which are improved on this one from 1998. -Geoff ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ OpenBabel-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-devel
