gargoyle_header_footer: Add more robust creation of MAC addresses.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>