Skip to content

Instantly share code, notes, and snippets.

@jpsilvashy
Created September 19, 2011 18:55
Show Gist options
  • Save jpsilvashy/1227270 to your computer and use it in GitHub Desktop.
Save jpsilvashy/1227270 to your computer and use it in GitHub Desktop.
Generate 20 BSON Ids
#!/usr/bin/env ruby
# encoding: utf-8
require 'bson'
20.times do
puts BSON::ObjectId.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment