]> git.ipfire.org Git - thirdparty/util-linux.git/blame - misc-utils/mcookie.c
Imported from util-linux-2.11o tarball.
[thirdparty/util-linux.git] / misc-utils / mcookie.c
CommitLineData
6dbe3af9
KZ
1/* mcookie.c -- Generates random numbers for xauth
2 * Created: Fri Feb 3 10:42:48 1995 by faith@cs.unc.edu
7eda085c
KZ
3 * Revised: Fri Mar 19 07:48:01 1999 by faith@acm.org
4 * Public Domain 1995, 1999 Rickard E. Faith (faith@acm.org)
6dbe3af9
KZ
5 * This program comes with ABSOLUTELY NO WARRANTY.
6 *
fd6b7a7f 7 * $Id: mcookie.c,v 1.5 1997/07/06 00:13:06 aebr Exp $
726f69e2
KZ
8 *
9 * This program gathers some random bits of data and used the MD5
10 * message-digest algorithm to generate a 128-bit hexadecimal number for
11 * use with xauth(1).
12 *
13 * NOTE: Unless /dev/random is available, this program does not actually
14 * gather 128 bits of random information, so the magic cookie generated
15 * will be considerably easier to guess than one might expect.
7eda085c 16 *
c07ebfa1 17