[GRASS-SVN] r46731 - grass/trunk/vector/v.random
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 17 21:37:28 EDT 2011
Author: hamish
Date: 2011-06-17 18:37:28 -0700 (Fri, 17 Jun 2011)
New Revision: 46731
Modified:
grass/trunk/vector/v.random/main.c
Log:
indent
Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c 2011-06-17 23:33:58 UTC (rev 46730)
+++ grass/trunk/vector/v.random/main.c 2011-06-18 01:37:28 UTC (rev 46731)
@@ -243,21 +243,20 @@
if (b) {
rng = drand48;
max = 1.0;
- /* Init the random seed*/
- if(parm.seed->answer)
- srand48((long)seed);
- else
- srand48((long)getpid());
+ /* Init the random seed*/
+ if(parm.seed->answer)
+ srand48((long)seed);
+ else
+ srand48((long)getpid());
}
- else { /* default is rand() */
-
+ else { /* default is rand() */
rng = myrand;
max = RAND_MAX;
- /* Init the random seed*/
- if(parm.seed->answer)
- srand(seed);
- else
- srand(getpid());
+ /* Init the random seed*/
+ if(parm.seed->answer)
+ srand(seed);
+ else
+ srand(getpid());
}
G_get_window(&window);
More information about the grass-commit
mailing list