Commit 99e61ae2 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille
parents 590e7bed 5001d256
......@@ -280,7 +280,7 @@ int main(int argc, char ** argv){
std::cout << "Cannot open file."<< std::endl;
return 1;
}
outfile.write((char* )(&NbPoints),sizeof(NbPoints));
outfile.write((char* )const_cast<int*>(&NbPoints),sizeof(NbPoints));
outfile.write((char*)&BoxWith,sizeof(BoxWith));
outfile.write((char*)Centre.getDataValue(),sizeof(FReal)*3);
//
......
......@@ -17,7 +17,7 @@
// return drand48();
//} ;
void initRandom() {
srand48( static_cast<unsigned int>(time(0))) ;
srand48( static_cast<long int>(time(0))) ;
} ;
FReal getRandom() {
return static_cast<FReal>(drand48());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment