crankshaft/pg/sql/0.0.1/01_random_seeds.sql
2016-02-18 11:28:26 +01:00

9 lines
265 B
PL/PgSQL

-- 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;