mirror of https://github.com/kiwix/libkiwix.git
+ Fix the initialisation of the random article url generator (ID: 3109548)
This commit is contained in:
parent
3d10562634
commit
e3afa2339b
|
@ -31,6 +31,9 @@ namespace kiwix {
|
||||||
this->currentArticleOffset = this->firstArticleOffset;
|
this->currentArticleOffset = this->firstArticleOffset;
|
||||||
this->articleCount = this->zimFileHandler->getNamespaceCount('A');
|
this->articleCount = this->zimFileHandler->getNamespaceCount('A');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* initialize random seed: */
|
||||||
|
srand ( time(NULL) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Destructor */
|
/* Destructor */
|
||||||
|
|
Loading…
Reference in New Issue