Remove unecessary srand() calls

We don't use rand() in swupd so don't need to initialize the random generator.
This was a leftover from previous code that used rand() for tests purposes.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
Otavio Pontes
2019-03-12 15:08:11 -07:00
parent 7d4bf8b433
commit eb4ae95bbf
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -688,8 +688,6 @@ int add_subscriptions(struct list *bundles, struct list **subs, struct manifest
struct list *iter;
struct manifest *manifest;
srand(time(NULL));
iter = list_head(bundles);
while (iter) {
bundle = iter->data;
-2
View File
@@ -240,8 +240,6 @@ static enum swupd_code main_update()
bool re_update = false;
bool versions_match = false;
srand(time(NULL));
ret = swupd_init();
if (ret != 0) {
/* being here means we already close log by a previously caught error */