Re: Random not so random
Arnau Rebassa <arebassa@hotmail.com>
From: "Arnau Rebassa" <arebassa@hotmail.com>
To: pgsql-general@postgresql.org
Date: 2004-10-04T07:34:45Z
Lists: 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/