Use SecureRandom to generate `unit_of_work_id`

[`SecureRandom.hex`][http://rubydoc.info/stdlib/securerandom/1.8.7/SecureRandom#hex-class_method] is supported back up to 1.8.7