Fixes Exceptions being raised by LOCALRNG QC

@jamie-cyber1 Please review