summaryrefslogtreecommitdiff
path: root/contrib/tablefunc/tablefunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
-rw-r--r--contrib/tablefunc/tablefunc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c
index 312c63a4c0c..031d7c8bc8a 100644
--- a/contrib/tablefunc/tablefunc.c
+++ b/contrib/tablefunc/tablefunc.c
@@ -165,8 +165,8 @@ typedef struct crosstab_hashent
* normal_rand - return requested number of random values
* with a Gaussian (Normal) distribution.
*
- * inputs are int numvals, float8 lower_bound, and float8 upper_bound
- * returns float8
+ * inputs are int numvals, float8 mean, and float8 stddev
+ * returns setof float8
*/
PG_FUNCTION_INFO_V1(normal_rand);
Datum
@@ -213,12 +213,6 @@ normal_rand(PG_FUNCTION_ARGS)
funcctx->user_fctx = fctx;
- /*
- * we might actually get passed a negative number, but for this
- * purpose it doesn't matter, just cast it as an unsigned value
- */
- srandom(PG_GETARG_UINT32(3));
-
MemoryContextSwitchTo(oldcontext);
}