Add support for seeds both in C++ and via customize functions in python cfg