Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Python
random.c
on
3.4
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 1, 2015
Issue #25003: os.urandom() doesn't use getentropy() on Solaris because
Show description for 78cc2e8
vstinner
committed
78cc2e8
View commit details
Copy full SHA for 78cc2e8
View code at this point
Browse repository at this point
Commits on Mar 30, 2015
Issue #22585: os.urandom() now releases the GIL when the getentropy() is used
Show description for 9aa1331
vstinner
committed
9aa1331
View commit details
Copy full SHA for 9aa1331
View code at this point
Browse repository at this point
Commits on Dec 21, 2014
Issue #22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
Show description for fe02e39
vstinner
committed
fe02e39
View commit details
Copy full SHA for fe02e39
View code at this point
Browse repository at this point
Commits on Dec 1, 2014
Removed duplicated words in in comments and docs.
serhiy-storchaka
committed
56a6d85
View commit details
Copy full SHA for 56a6d85
View code at this point
Browse repository at this point
Commits on Apr 26, 2014
Issue #21207: Detect when the os.urandom cached fd has been closed or replaced, and open it anew.
pitrou
committed
e472aea
View commit details
Copy full SHA for e472aea
View code at this point
Browse repository at this point
Commits on Dec 21, 2013
Issue #16136: Remove VMS support and VMS-related code
tiran
committed
af01f66
View commit details
Copy full SHA for af01f66
View code at this point
Browse repository at this point
Commits on Nov 20, 2013
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Show description for 985ecdc
tiran
committed
985ecdc
View commit details
Copy full SHA for 985ecdc
View code at this point
Browse repository at this point
Commits on Nov 15, 2013
Fix compiler warning in win32_urandom(): explicit cast to DWORD in
Show description for 0c08346
vstinner
committed
0c08346
View commit details
Copy full SHA for 0c08346
View code at this point
Browse repository at this point
Commits on Oct 6, 2013
merge with 3.3
birkenfeld
committed
af1edb7
View commit details
Copy full SHA for af1edb7
View code at this point
Browse repository at this point
Closes #15213: update comment for _PyOS_URandom
birkenfeld
committed
c6a2c9b
View commit details
Copy full SHA for c6a2c9b
View code at this point
Browse repository at this point
Commits on Aug 30, 2013
Issue #18756: os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads.
pitrou
committed
4879a96
View commit details
Copy full SHA for 4879a96
View code at this point
Browse repository at this point
Commits on Aug 27, 2013
Issue #18571: Implementation of the PEP 446: file descriptors and file handles
Show description for daf4555
vstinner
committed
daf4555
View commit details
Copy full SHA for daf4555
View code at this point
Browse repository at this point
Commits on Aug 16, 2013
Issue #18756: Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
pitrou
committed
95b2146
View commit details
Copy full SHA for 95b2146
View code at this point
Browse repository at this point
Issue #18756: Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
pitrou
committed
ec34ab5
View commit details
Copy full SHA for ec34ab5
View code at this point
Browse repository at this point
Commits on Jan 25, 2013
Drop support for Windows 2000; allow any XP API (but not Vista+).
Show description for 3f50bf6
loewis
committed
3f50bf6
View commit details
Copy full SHA for 3f50bf6
View code at this point
Browse repository at this point
Commits on Sep 7, 2012
Issue #15340: Fix importing the random module when /dev/urandom cannot be opened.
Show description for 380c55c
pitrou
committed
380c55c
View commit details
Copy full SHA for 380c55c
View code at this point
Browse repository at this point
Commits on Feb 21, 2012
enable hash randomization by default
benjaminp
committed
c9f54cf
View commit details
Copy full SHA for c9f54cf
View code at this point
Browse repository at this point
ensure no one tries to hash things before the random seed is found
benjaminp
committed
69e9727
View commit details
Copy full SHA for 69e9727
View code at this point
Browse repository at this point
Commits on Feb 20, 2012
Fix typo in conditional.
birkenfeld
committed
12897d7
View commit details
Copy full SHA for 12897d7
View code at this point
Browse repository at this point
Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
Show description for 2daf6ae
birkenfeld
committed
2daf6ae
View commit details
Copy full SHA for 2daf6ae
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.