Check if we actually get data from urandom for mac generation. Fixes: CID 1042358

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>