add c++11 random library support