Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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

pgsql-patches by date

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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group