[lug] Platform independent randomness

Ken Weinert kenw at ihs.com
Thu Nov 29 20:38:14 MST 2001


	Does anyone have any pointers to an algorithm for
rand()/srand() that is platform independent? In this case the 3
platforms of concern are sun/solaris, sun/x86, linux/x86.

	The requirements are that given a particular seed, all 3
platforms will generate the same sequence of (pseudo) random numbers.
This isn't a highly secure application, so this doesn't have to be the
most robust algorithm, just repeatable on the 3 platforms above.

	Thanks in advance for any help.

-- 
Ken Weinert   kenw at ihs.com 303-858-6956 (V) 303-705-4258 (F)
GnuPG KeyID: 9274F1CE           GnuPG available at http://www.gnupg.org/
GnuPG Key Fingerprint: 1D87 3720 BB77 4489 A928  79D6 F8EC DD76 9274 F1CE
Linux 2.2.14: up 27 days,  4:45
Never trust a grapefruit - Solomon Short

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20011129/c75d0f4c/attachment.pgp>


More information about the LUG mailing list