Commit 26b28674 authored by perdacherMartin's avatar perdacherMartin

fixed erand48 init

parent d386cdb3
......@@ -2,12 +2,14 @@
#include "dataIo.h"
void random_init(double *array, const int N, const int D){
short unsigned int seed = 3;
short unsigned seed[3];
int i;
seed[0]=1; seed[1]=1; seed[2]=2;
#pragma omp parallel for firstprivate(seed)
for ( i=0 ; i < N * D ; i++ ){
array[i] = erand48(&seed);
array[i] = erand48(seed);
}
}
......
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