Do we need to initialize `_gen` to NULL here if we're going to initialize it properly further down?  (While initializing to NULL gives more predictability, it also stops valgrind from helping point out issues, given that NULL is actually never a sensible value for this to have.)