Fix a potential crash in rand_unix.c