Replace user-defined namespace with random namespace