diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-07-09 22:28:37 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-07-09 22:28:37 (GMT) |
commit | d3867932ccf65df14fed0ef0a3f2bbf05d6f4e12 (patch) | |
tree | cfb3c3b9c7cb856fd081012e8047898d6201f4c3 /compat | |
parent | 2be386ea7d3b397f528a6e499bc4ad95ec57aa17 (diff) | |
download | tcl-d3867932ccf65df14fed0ef0a3f2bbf05d6f4e12.zip tcl-d3867932ccf65df14fed0ef0a3f2bbf05d6f4e12.tar.gz tcl-d3867932ccf65df14fed0ef0a3f2bbf05d6f4e12.tar.bz2 |
Fix [Bug 2819227] by using a function from C89 rather than POSIX.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mkstemp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/mkstemp.c b/compat/mkstemp.c index f86bde2..f396993 100644 --- a/compat/mkstemp.c +++ b/compat/mkstemp.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: mkstemp.c,v 1.2 2009/05/12 20:26:04 dkf Exp $ + * RCS: @(#) $Id: mkstemp.c,v 1.3 2009/07/09 22:28:38 dkf Exp $ */ #include <errno.h> @@ -64,7 +64,7 @@ mkstemp( */ for (b=a ; *b ; b++) { - float r = random() / ((float) RAND_MAX); + float r = rand() / ((float) RAND_MAX); *b = alphanumerics[(int)(r * alphanumericsLen)]; } |