ruby
https://github.com/ruby/ruby
Ruby
The Ruby Programming Language
CGI::Session#create_new_id
Create a new session id. The session id is a secure random number by SecureRandom if possible, otherwise an SHA512 hash based upon the time, a random number, and a constant string. This routine is used internally for automatically generated session ids.
Edit
git clone [email protected]:ruby/ruby.git
cd ruby
open lib/cgi/session.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-CGI--Session-create_new_id-for-pr
# Commit to gitgit add lib/cgi/session.rbgit commit -m "better docs for CGI::Session#create_new_id"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-CGI--Session-create_new_id-for-pr
hub pull-request
# Celebrate!