summaryrefslogtreecommitdiff
path: root/src/include/common
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-01-09 12:44:00 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2023-01-09 12:44:00 -0500
commit38d81760c4d7e22b95252e3545596602c9e38806 (patch)
treec5f8802619bf418dbdcc40392bb6d47123861908 /src/include/common
parent2673ebf49acfd83b09c777ced8f21eacd27b51ce (diff)
Invent random_normal() to provide normally-distributed random numbers.
There is already a version of this in contrib/tablefunc, but it seems sufficiently widely useful to justify having it in core. Paul Ramsey Discussion: https://postgr.es/m/CACowWR0DqHAvOKUCNxTrASFkWsDLqKMd6WiXvVvaWg4pV1BMnQ@mail.gmail.com
Diffstat (limited to 'src/include/common')
-rw-r--r--src/include/common/pg_prng.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/common/pg_prng.h b/src/include/common/pg_prng.h
index 9e11e8fffdc..b5c0b8d2883 100644
--- a/src/include/common/pg_prng.h
+++ b/src/include/common/pg_prng.h
@@ -55,6 +55,7 @@ extern uint32 pg_prng_uint32(pg_prng_state *state);
extern int32 pg_prng_int32(pg_prng_state *state);
extern int32 pg_prng_int32p(pg_prng_state *state);
extern double pg_prng_double(pg_prng_state *state);
+extern double pg_prng_double_normal(pg_prng_state *state);
extern bool pg_prng_bool(pg_prng_state *state);
#endif /* PG_PRNG_H */