updated secure random