caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andrei Formiga <andrei.formiga@gmail.com>
To: Christophe Raffalli <craff73@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] portablility of random.mli in the stdlib
Date: Sat, 30 Apr 2011 12:38:59 -0300	[thread overview]
Message-ID: <BANLkTi=d42N=Ua-40Xd7vkC9WAMidY9oyw@mail.gmail.com> (raw)
In-Reply-To: <4DBBF59F.1000504@univ-savoie.fr>

Yes, the RNG algorithm changed from 3.11 (linear feedback shift
register) to 3.12 (a lagged Fibonacci with some adaptations). Neither
are suitable for use with cryptography.

-- 
[]s, Andrei Formiga


2011/4/30 Christophe Raffalli <craff73@gmail.com>:
> Le 30/04/11 13:26, Török Edwin a écrit :
>> Why should a random generator give the same results over multiple
>> versions and architectures?
> To be able to replay a game on various architecture saving only the seed
> and the user movement (which is very small).
>> Starting from same seed is useful only for debugging.
> This is really untrue in a lot of applications for instance in cryptography.
> But I do not know if random.ml is good enough for assymetric cryptography
> (where the secret key in the seed and the coding is simply xor with a
> random sequence of bit)
> This require not only passing all randomness test, but also making it
> hard to recover the key from
> a generated sequence of random bits.
>
> Cheers,
> Christophe
>
>
>


  reply	other threads:[~2011-04-30 15:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-30 10:37 Christophe Raffalli
2011-04-30 11:14 ` Christophe Raffalli
2011-04-30 11:26   ` Török Edwin
2011-04-30 11:42     ` Christophe Raffalli
2011-04-30 15:38       ` Andrei Formiga [this message]
2011-04-30 12:06     ` Alexandre Pilkiewicz
2011-04-30 13:33     ` Andrew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=d42N=Ua-40Xd7vkC9WAMidY9oyw@mail.gmail.com' \
    --to=andrei.formiga@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=craff73@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).