get and set random seed for kernel and factory separately

get+set  current random seed for kernel and factory separately
to easily reproduce crashes from random tests