Bug Fix - uuids not unique

- Fixed bug that caused code to use a combination of srandom and rand,
  or srand and random.  Should be srandom/random, srand/rand, not a
  mix.
- Fixed bug that failed to set uuid in handleAdd, such that the uuid
  already assigned in context.task was used, which was generated before
  srand/srandom was is called.
This commit is contained in:
Paul Beckingham 2009-07-02 01:28:42 -04:00
parent 9f4a9d1325
commit a41f0a0256
2 changed files with 2 additions and 0 deletions

View file

@ -52,6 +52,7 @@ std::string handleAdd ()
{
std::stringstream out;
context.task.set ("uuid", uuid ());
context.task.setEntry ();
// Recurring tasks get a special status.

View file

@ -29,6 +29,7 @@
#include <stdlib.h>
#include <time.h>
#include "Context.h"
#include "../auto.h"
Context context;