mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-04 15:58:22 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user