mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix - random broken
- Moved srandom/srand call back to where it was in 1.7.1.
This commit is contained in:
parent
f588055b31
commit
10fe3d6b28
2 changed files with 9 additions and 0 deletions
|
@ -53,11 +53,13 @@ Context::Context ()
|
|||
, inShadow (false)
|
||||
{
|
||||
// Set up randomness.
|
||||
/*
|
||||
#ifdef HAVE_SRANDOM
|
||||
srandom (time (NULL));
|
||||
#else
|
||||
srand (time (NULL));
|
||||
#endif
|
||||
*/
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -32,6 +32,13 @@ Context context;
|
|||
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
// Set up randomness.
|
||||
#ifdef HAVE_SRANDOM
|
||||
srandom (time (NULL));
|
||||
#else
|
||||
srand (time (NULL));
|
||||
#endif
|
||||
|
||||
int status = 0;
|
||||
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue