Re: Random strings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Random strings
Дата
Msg-id Pine.LNX.4.30.0108091733450.698-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Random strings  ("Joe Conway" <joseph.conway@home.com>)
Список pgsql-patches
Joe Conway writes:

> seconds). The same test with /dev/urandom returns instantly. Perhaps there
> should be an option to use either. For instances where only a few truly
> random bytes is needed (i.e. one session key), use /dev/random. When you
> need many random bytes quickly, use /dev/urandom?

Not sure if this is intuitive.  How many bytes is "a few"?  Maybe just be
honest about it and name them randomstr and urandomstr or such.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


В списке pgsql-patches по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: contrib/postgis spatial extensions
Следующее
От: "Joe Conway"
Дата:
Сообщение: Re: Random strings