<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,7 @@
-Principal Author
+Principal Author:
   Paul Beckingham, paul@beckingham.net
 
-Contributing Authors
-
+With thanks to:
+  Eugene Kramer
+  SK
 </diff>
      <filename>AUTHORS</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.61)
-AC_INIT(task, 1.0.0, bugs@beckingham.net)
+AC_INIT(task, 1.0.1, bugs@beckingham.net)
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([src/task.cpp])
 AC_CONFIG_HEADER([auto.h])
@@ -35,6 +35,8 @@ AC_FUNC_SELECT_ARGTYPES
 AC_CHECK_FUNCS([select])
 AC_CHECK_FUNC(flock, [AC_DEFINE([HAVE_FLOCK], [1], [Found flock])])
 AC_CHECK_FUNC(uuid_unparse_lower, [AC_DEFINE([HAVE_UUID], [1], [Found uuid_unparse_lower])])
+AC_CHECK_FUNC(random, [AC_DEFINE([HAVE_RANDOM], [1], [Found random])])
+AC_CHECK_FUNC(srandom, [AC_DEFINE([HAVE_SRANDOM], [1], [Found srandom])])
 
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_OUTPUT</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -207,6 +207,13 @@ int main (int argc, char** argv)
 // TODO Find out what this is, and either promote it to live code, or remove it.
 //  std::set_terminate (__gnu_cxx::__verbose_terminate_handler);
 
+  // Set up randomness.
+#ifdef HAVE_SRANDOM
+  srandom (time (NULL));
+#else
+  srand (time (NULL));
+#endif
+
   try
   {
     // Load the config file from the home directory.  If the file cannot be</diff>
      <filename>src/task.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -182,14 +182,18 @@ const std::string uuid ()
 static char randomHexDigit ()
 {
   static char digits[] = &quot;0123456789abcdef&quot;;
+#ifdef HAVE_RANDOM
   return digits[random () % 16];
+#else
+  return digits[rand () % 16];
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 const std::string uuid ()
 {
   // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
-  char id [37];
+  char id [48] = {0};
   id[0]  = randomHexDigit ();
   id[1]  = randomHexDigit ();
   id[2]  = randomHexDigit ();</diff>
      <filename>src/util.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
   &lt;/head&gt;
   &lt;body&gt;
-    Download latest task &lt;a href=&quot;http://www.beckingham.net/task-1.0.0.tar.gz&quot;&gt;task-1.0.0.tar.gz (6/3/2008)&lt;/a&gt;.
+    Download the latest task source code &lt;a href=&quot;http://www.beckingham.net/task-1.0.0.tar.gz&quot;&gt;task-1.0.0.tar.gz&lt;/a&gt; (6/3/2008).
   &lt;body&gt;
 &lt;/html&gt;
 </diff>
      <filename>task.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f3de5c07118c597091a05c7d7fe8bdeae95474c1</id>
    </parent>
  </parents>
  <author>
    <name>Paul Beckingham</name>
    <email>paul@beckingham.net</email>
  </author>
  <url>http://github.com/pbeckingham/task/commit/08f4ead97e7688cf06bce298260bcc8a824253a0</url>
  <id>08f4ead97e7688cf06bce298260bcc8a824253a0</id>
  <committed-date>2008-06-04T18:00:23-07:00</committed-date>
  <authored-date>2008-06-04T18:00:23-07:00</authored-date>
  <message>- Fixed bug whereby the UUID generated by the custom generator was not terminated.
- Fixed bug whereby random numbers were used by the custom UUID generator, but srandom/srand was not called first.</message>
  <tree>86530eb7cfdb2d73ff347d20da62517f956bbfac</tree>
  <committer>
    <name>Paul Beckingham</name>
    <email>paul@beckingham.net</email>
  </committer>
</commit>
