1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

With Joe Conway's concurrence, remove srandom() call from normal_rand().

This was the last piece of code that took it upon itself to reset the
random number sequence --- now we only have srandom() in postmaster start,
backend start, and explicit setseed() operations.
This commit is contained in:
Tom Lane
2003-09-13 21:44:50 +00:00
parent 94a13b8a11
commit c472b8366f
5 changed files with 9 additions and 18 deletions

View File

@ -7,7 +7,7 @@
-- normal_rand()
-- no easy way to do this for regression testing
--
SELECT avg(normal_rand)::int FROM normal_rand(100, 250, 0.2, EXTRACT(SECONDS FROM CURRENT_TIME(0))::int);
SELECT avg(normal_rand)::int FROM normal_rand(100, 250, 0.2);
avg
-----
250