]> cygwin.com Git - cygwin-apps/cygutils.git/blame - src/mcookie/mcookie.c
Fixes for cygstart; bump version number and documentation
[cygwin-apps/cygutils.git] / src / mcookie / mcookie.c
CommitLineData
eb7cdcb6
CW
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 * ORIGINAL LICENSE:
5 * Public Domain 1995, 1999 Rickard E. Faith (faith@acm.org)
6 * This program comes with ABSOLUTELY NO WARRANTY.
7 * Revised 2002-07-12: Charles Wilson
8 * modified to work on cygwin; integrated into cygutils package
9 * Changes licensed under the GPL
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 *
25 * See the COPYING file for license information.
26 */
27
28/* $Id$
29 *
30 * This program gathers some random bits of data and used the MD5
31 * message-digest algorithm to generate a 128-bit hexadecimal number for
32 * use with xauth(1).
33 *
34 * NOTE: Unless /dev/random is available, this program does not actually
35 * gather 128 bits of random information, so the magic cookie generated
36 * will be considerably easier to guess than one might expect.
37 *
38