initialize random generator when picking new macaddr

Also fix wrong use of bitmask flags

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>