]>
Commit | Line | Data |
---|---|---|
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 | * | |
726f69e2 KZ |
7 | * This program gathers some random bits of data and used the MD5 |
8 | * message-digest algorithm to generate a 128-bit hexadecimal number for | |
9 | * use with xauth(1). | |
10 | * | |
11 | * NOTE: Unless /dev/random is available, this program does not actually | |
12 | * gather 128 bits of random information, so the magic cookie generated | |
13 | * will be considerably easier to guess than one might expect. | |
7eda085c | 14 | * |
c07ebfa1 | 15 |