Re: Random strings - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Random strings
Date
Msg-id Pine.LNX.4.30.0108091733450.698-100000@peter.localdomain
Whole thread Raw
In response to Re: Random strings  ("Joe Conway" <joseph.conway@home.com>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: contrib/postgis spatial extensions
Next
From: "Joe Conway"
Date:
Subject: Re: Random strings