Re: Random strings

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Joe Conway <joseph(dot)conway(at)home(dot)com>
Cc: "Dr(dot) Evil" <drevil(at)sidereal(dot)kz>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Random strings
Date: 2001-08-09 15:35:13
Message-ID: Pine.LNX.4.30.0108091733450.698-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Page 2001-08-09 15:37:01 Re: Re: First Saturday and Last Saturday of a month
Previous Message Justin Clift 2001-08-09 14:48:18 Re: An unfair comparision....

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2001-08-09 17:13:18 Re: Random strings
Previous Message Peter Eisentraut 2001-08-09 15:24:45 Re: contrib/postgis spatial extensions