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:
@@ -52,6 +52,7 @@ std::string handleAdd ()
|
||||
{
|
||||
std::stringstream out;
|
||||
|
||||
context.task.set ("uuid", uuid ());
|
||||
context.task.setEntry ();
|
||||
|
||||
// Recurring tasks get a special status.
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "Context.h"
|
||||
#include "../auto.h"
|
||||
|
||||
Context context;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user