Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 21 Sep 2014 14:40:07 +0200
From: Jens Gustedt <jens.gustedt@...ia.fr>
To: musl@...ts.openwall.com
Cc: Nadav Har'El <nyh@...udius-systems.com>
Subject: Re: Re: drand48() gives wrong sequence?

Am Sonntag, den 21.09.2014, 15:20 +0300 schrieb Nadav Har'El:
> >Am Sonntag, den 21.09.2014, 14:45 +0300 schrieb Nadav Har'El:
> >> Any ideas why I'm getting the wrong sequence?
> >
> >I don't think you are getting the wrong sequence, you are just
> >printing it wrong. "%ld" is for long double and not for double.
> >
> >Jens
> (I tried to subscribe to the mailing list but it didn't work, so
> please CC me with further responses).
> 
> 
> "%ld" is not a double at all, it's an int.

> My message's title was indeed somewhat confusing, because I mentioned
> drand48() in the title but used lrand48() in my example code.

ah, right, still my association of %ld to long double was a bit hasty,
sorry for the noise.

Jens

-- 
:: INRIA Nancy Grand Est ::: AlGorille ::: ICube/ICPS :::
:: ::::::::::::::: office Strasbourg : +33 368854536   ::
:: :::::::::::::::::::::: gsm France : +33 651400183   ::
:: ::::::::::::::: gsm international : +49 15737185122 ::
:: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::




Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.