afb-session: Use ad-hoc pseudo-random uuid 81/16481/1
authorJose Bollo <jose.bollo@iot.bzh>
Thu, 6 Sep 2018 14:01:20 +0000 (16:01 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Thu, 6 Sep 2018 14:01:20 +0000 (16:01 +0200)
commit8647a3478674979cca582774168a6f220de171ef
tree2a5cfcf4f4669a2bdd7cde39afaa52144e11a25e
parentd3edd5fd994c35f7eb574c3c862d0c08b309cafb
afb-session: Use ad-hoc pseudo-random uuid

The use of the generator given by the lib uuid
implies the use of the system call 'getrandom'
without the flag GRND_NONBLOCK. It has a weird
effect on boot because many binders require
the generation of uuid at the same time but
getrandom is subject to starving.

This introduced a tiny pseudo-random generation
of UUID that does not implies the use of 'getrandom'.

Bug-AGL: SPEC-1655

Change-Id: I5131072881d7a53f0edda9e36762985c96a04550
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-session.c