fixed verification mode to work accross architectures / compilers - it was originally dependent on the rand() implementation