Re: Random not so random

Поиск
Список
Период
Сортировка
От Arnau Rebassa
Тема Re: Random not so random
Дата
Msg-id BAY15-F40onKcDnUiy40001f47a@hotmail.com
обсуждение исходный текст
Ответ на Random not so random  ("Arnau Rebassa" <arebassa@hotmail.com>)
Ответы Re: Random not so random  (Neil Conway <neilc@samurai.com>)
Re: Random not so random  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Application user login/management
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Random not so random