Re: Random strings
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Joe Conway <joseph.conway@home.com>
Cc: "Dr. Evil" <drevil@sidereal.kz>, <pgsql-patches@postgresql.org>
Date: 2001-08-09T15:35:13Z
Lists: pgsql-general
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