]>
Commit | Line | Data |
---|---|---|
1 | /* mcookie.c -- Generates random numbers for xauth | |
2 | * Created: Fri Feb 3 10:42:48 1995 by faith@cs.unc.edu | |
3 | * Revised: Fri Mar 19 07:48:01 1999 by faith@acm.org | |
4 | * Public Domain 1995, 1999 Rickard E. Faith (faith@acm.org) | |
5 | * This program comes with ABSOLUTELY NO WARRANTY. | |
6 | * | |
7 | * $Id: mcookie.c,v 1.5 1997/07/06 00:13:06 aebr Exp $ | |
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. | |
16 | * | |
17 |