comparison tests/pointset_test/genpoints2.c @ 303:9f9b8b5f35f2

Whoops. My fault: time() takes an argument.
author mas01cr
date Mon, 04 Aug 2008 10:01:47 +0000
parents 40dca0cbbffd
children
comparison
equal deleted inserted replaced
302:74824093c1c4 303:9f9b8b5f35f2
21 dim = strtol(argv[3], NULL, 0); 21 dim = strtol(argv[3], NULL, 0);
22 22
23 // Generate *count* Gaussian Random vectors in R^*dim* 23 // Generate *count* Gaussian Random vectors in R^*dim*
24 // sitting on the *rdashed*-sphere 24 // sitting on the *rdashed*-sphere
25 25
26 srandom(time()); 26 srandom(time(NULL));
27 27
28 int i,j; 28 int i,j;
29 for (i = 0; i < count + 1; i++) { 29 for (i = 0; i < count + 1; i++) {
30 // Normed Gaussian random vectors are distributed uniformly on unit sphere 30 // Normed Gaussian random vectors are distributed uniformly on unit sphere
31 double* coords = malloc(dim * sizeof(double)); 31 double* coords = malloc(dim * sizeof(double));