-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Julien Cristau wrote:
> On Mon, Mar 12, 2007 at 14:34:02 +0800, Thomas Goirand wrote:
> 
>> What do you suggest? Should I use mktemp to get the random values
>> instead? Why is it insecure? Is ${RANDOM} predictable?
>>
> first, $RANDOM is a bashism
> second, it gives you an integer between 0 and 32767.
> 
> I don't understand your comment about mktemp.  mktemp creates files, not
> passwords.
> 
> Cheers,
> Julien

mktemp does NOT creates a file, AFAIK. It just gives you a name of a
file randomly, that you can later create, used and destroy. That can be
used to get random values. I used it in the past, and it works pretty
well. Do you think it would be good this way, like I do?

What is the best (or standard) way to get a random passphrase or random
value?

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9TEMl4M9yZjvmkkRAjC/AKCjcisCsMwsGlAkyjQ1dIDFKcVN6ACgmwYE
fWqGlG3fxIQ4ep5OEiE5Yyw=
=uHsE
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to