use nullobject pattern for default logger
use a safer PRNG for RandomGenerator model