mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
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:
parent
9f4a9d1325
commit
a41f0a0256
2 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ std::string handleAdd ()
|
||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
|
context.task.set ("uuid", uuid ());
|
||||||
context.task.setEntry ();
|
context.task.setEntry ();
|
||||||
|
|
||||||
// Recurring tasks get a special status.
|
// Recurring tasks get a special status.
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "Context.h"
|
#include "Context.h"
|
||||||
|
#include "../auto.h"
|
||||||
|
|
||||||
Context context;
|
Context context;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue