Merge pull request #147 from tschottdorf/master

add txn uncertainty test, fix random numbers data race