lib/azure/table/batch.rb in azure-0.7.5 vs lib/azure/table/batch.rb in azure-0.7.6

- old
+ new

@@ -10,11 +10,11 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #-------------------------------------------------------------------------- -require 'uuid' +require 'securerandom' require 'azure/table/serialization' require 'azure/table/table_service' require 'azure/table/batch_response' require 'azure/core/http/http_error' @@ -52,12 +52,11 @@ @table = table @partition = partition @operations = [] @entity_keys = [] @table_service = Azure::Table::TableService.new - uuid = UUID.new - @batch_id = "batch_" + uuid.generate - @changeset_id = "changeset_" + uuid.generate + @batch_id = "batch_" + SecureRandom.uuid + @changeset_id = "changeset_" + SecureRandom.uuid self.instance_eval(&block) if block_given? end private \ No newline at end of file