fix Random initialization for support gcc4.5.1