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:
@ -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
|
||||
|
Reference in New Issue
Block a user