removed redundant headers for random.c, __LOGNAME__ moved to ds_priv.h