Simplify the nonce generation. Thanks @jedp!