X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Faf-usrd.c;h=6314e2ac7a3af221e8fb391bef5e72a755774da6;hb=c0fc18e47e49dd4e3cc2f09452a19297dad63f9c;hp=89e1c57dfb6e6963fbec4dacede8fb6049a08968;hpb=d98ed87299e26531f5a71ad053cbe412f8252799;p=src%2Fapp-framework-main.git diff --git a/src/af-usrd.c b/src/af-usrd.c index 89e1c57..6314e2a 100644 --- a/src/af-usrd.c +++ b/src/af-usrd.c @@ -1,6 +1,8 @@ /* Copyright 2015 IoT.bzh + author: José Bollo + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -148,6 +150,9 @@ int main(int ac, char **av) { LOGAUTH("afdb-usrd"); + /* init random generator */ + srandom((unsigned int)time(NULL)); + /* init runners */ if (af_run_init()) { ERROR("af_run_init failed");