From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3UAbtjU024369 for ; Sat, 30 Apr 2011 12:37:56 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4CADPlu01KfVK2imdsb2JhbACmEAgUAQEBCgkNBxIGIad4inyCKoQwNIheAQEDBoV6BJQghRM7gy8 X-IronPort-AV: E=Sophos;i="4.64,292,1301868000"; d="asc'?scan'208";a="82057372" Received: from mail-wy0-f182.google.com ([74.125.82.182]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Apr 2011 12:37:50 +0200 Received: by wyf23 with SMTP id 23so6000500wyf.27 for ; Sat, 30 Apr 2011 03:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:x-enigmail-version:content-type; bh=1xcS/Yrqh61NcgWTvAVExPk4mC4wREmh+drhEYsfq0k=; b=fA5FSKwSM/8P5op+ClOCtf8L/dJjI+ySevFk4iHq/WLeX8iP3BhoJft/trng+ZKc6H ZnRxZAwVf+EOnyAWFjKAKyRhD3RTviWE03UeHwQYL/rL1XlYcfL6fPojT3Q6k+U/t1XP T8b/VkTnNtcw9sR+ZkMXmBphbPFv9/kWGZ8Zg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :x-enigmail-version:content-type; b=IKHxEeYRCK95Iv7RwMHTHjgB0GYWFHJXvmTmqejZUI6XxqDEZn8Te9QNejogJyH2bO IdXTgtLAJelT8Rrr2mQT4l4fjSmhqfXEvP9bQZamcBBV2lSLUFsNQAVIs8Pu6VrPaOAq sXfjemrQ+7lgUaYuK5X72GWQ3/zS3CeL2Nh8M= Received: by 10.216.134.67 with SMTP id r45mr2286522wei.44.1304159869774; Sat, 30 Apr 2011 03:37:49 -0700 (PDT) Received: from macbookpro.local (vpn-b-advanced.univ-savoie.fr [193.48.127.14]) by mx.google.com with ESMTPS id c54sm1743478wer.6.2011.04.30.03.37.48 (version=SSLv3 cipher=OTHER); Sat, 30 Apr 2011 03:37:49 -0700 (PDT) Message-ID: <4DBBE676.8070101@univ-savoie.fr> Date: Sat, 30 Apr 2011 12:37:42 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: OCaml CC: Pierre Hyvernat , Guillaume Theyssier X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig454254EE6EDAFFB580BFD4B5" X-Validation-by: craff73@gmail.com Subject: [Caml-list] portablility of random.mli in the stdlib This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig454254EE6EDAFFB580BFD4B5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, Playing with my game (see my previous post), I saw that it seems that the random number generator in not portable ... The same seed will not give the same random sequence on a 32 bits and 64 bits machine ... If you use Random.int, this seems normal ... But if you use only Random.float or other functions consuming the same number of bits, this is not what I expected .... What do other people think ? Is this a sort of bug ? Cheers, Chrisophe --------------enig454254EE6EDAFFB580BFD4B5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk275noACgkQi9jr/RgYAS5WEQCgjy2jJONVoiqec/29FLocRonv XnIAniXYf5zUyWJNEvd3pXE2rixC7F0z =NwhE -----END PGP SIGNATURE----- --------------enig454254EE6EDAFFB580BFD4B5--