Now at least found the bug with missing return value in rngIsEmpty()