crankshaft/pg/sql/0.0.1/01_random_seeds.sql
2016-02-18 16:10:34 +01: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;