Re: Random not so random - Mailing list pgsql-general

From Arnau Rebassa
Subject Re: Random not so random
Date
Msg-id BAY15-F40onKcDnUiy40001f47a@hotmail.com
Whole thread Raw
In response to Random not so random  ("Arnau Rebassa" <arebassa@hotmail.com>)
Responses Re: Random not so random
Re: Random not so random
List pgsql-general
Hi Greg,

>What OS is this? Postgres is just using your OS's random()/srandom() calls.
>On
>some platforms these may be poorly implemented and not very random.

  I'm using a debian linux as OS with a 2.4 kernel running on it.

>Incidentally, are you reconnecting every time or is it that multiple calls
>in
>a single session are returning the same record?

  I'm reconnecting each time I want to retrieve a message. The idea is I
have a lilbrary of messages and I want to pick one of it randomly. I don't
know if there is the possibility to seed the random number generator
manually, anybody knows it?


Thanks to all

--
Arnau

_________________________________________________________________
¿Cuánto vale tu auto? Tips para mantener tu carro. ¡De todo en MSN Latino
Autos! http://latino.msn.com/autos/


pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Application user login/management
Next
From: Neil Conway
Date:
Subject: Re: Random not so random