Files
crankshaft/src/pg/sql/03_random_seeds.sql
2016-06-14 18:06:23 +02:00

10 lines
288 B
PL/PgSQL

-- Internal function.
-- Set the seeds of the RNGs (Random Number Generators)
-- used internally.
CREATE OR REPLACE FUNCTION
_cdb_random_seeds (seed_value INTEGER) RETURNS VOID
AS $$
from crankshaft import random_seeds
random_seeds.set_random_seeds(seed_value)
$$ LANGUAGE plpythonu;