Refactor and new tests

This commit is contained in:
Javier Goizueta
2016-02-18 11:28:26 +01:00
parent 89cda152bd
commit e1951e1ea9
19 changed files with 262 additions and 78 deletions
+8
View File
@@ -0,0 +1,8 @@
-- 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;