Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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 }}
xiaolanpython
/
cpython
Public
forked from
python/cpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Python
random.c
on
master
User selector
All users
All time
Commit history
Commits on Jan 6, 2017
Issue #29157: enhance py_getrandom() documentation
vstinner
committed
b27df6f
View commit details
Copy full SHA for b27df6f
View code at this point
Browse repository at this point
py_getentropy() now supports ENOSYS, EPERM & EINTR
Show description for de2f1ea
vstinner
committed
de2f1ea
View commit details
Copy full SHA for de2f1ea
View code at this point
Browse repository at this point
Issue #29157: getrandom() is now preferred over getentropy()
Show description for 2f79643
vstinner
committed
2f79643
View commit details
Copy full SHA for 2f79643
View code at this point
Browse repository at this point
Issue #29157: Simplify dev_urandom()
Show description for a49a207
vstinner
committed
a49a207
View commit details
Copy full SHA for a49a207
View code at this point
Browse repository at this point
Issue #29157: dev_urandom() now calls py_getentropy()
Show description for dcdb60e
vstinner
committed
dcdb60e
View commit details
Copy full SHA for dcdb60e
View code at this point
Browse repository at this point
Commits on Jan 2, 2017
merge 3.5 (#29057)
benjaminp
committed
4632258
View commit details
Copy full SHA for 4632258
View code at this point
Browse repository at this point
only include sys/random.h if it seems like it might have something useful (#29057)
benjaminp
committed
493ac1b
View commit details
Copy full SHA for 493ac1b
View code at this point
Browse repository at this point
Commits on Dec 20, 2016
merge 3.5 (#28932)
benjaminp
committed
b0eb986
View commit details
Copy full SHA for b0eb986
View code at this point
Browse repository at this point
add a specific configure check for sys/random.h (closes #28932)
benjaminp
committed
fb2ae15
View commit details
Copy full SHA for fb2ae15
View code at this point
Browse repository at this point
Commits on Nov 12, 2016
Issue #28676: merge from 3.5
ned-deily
committed
7d895d3
View commit details
Copy full SHA for 7d895d3
View code at this point
Browse repository at this point
Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.
Show description for 7ae4112
ned-deily
committed
7ae4112
View commit details
Copy full SHA for 7ae4112
View code at this point
Browse repository at this point
Commits on Sep 20, 2016
(Merge 3.5) Catch EPERM error in py_getrandom()
Show description for 75024c6
vstinner
committed
75024c6
View commit details
Copy full SHA for 75024c6
View code at this point
Browse repository at this point
Catch EPERM error in py_getrandom()
Show description for 6d8bc46
vstinner
committed
6d8bc46
View commit details
Copy full SHA for 6d8bc46
View code at this point
Browse repository at this point
Cleanup random.c
Show description for af59732
vstinner
committed
af59732
View commit details
Copy full SHA for af59732
View code at this point
Browse repository at this point
Commits on Sep 6, 2016
os.urandom() now blocks on Linux
Show description for e66987e
vstinner
committed
e66987e
View commit details
Copy full SHA for e66987e
View code at this point
Browse repository at this point
Commits on Aug 16, 2016
Issue #27776: dev_urandom(raise=0) now closes the file descriptor on error
vstinner
committed
3ee933f
View commit details
Copy full SHA for 3ee933f
View code at this point
Browse repository at this point
Issue #27776: Cleanup random.c
Show description for 6974cf2
vstinner
committed
6974cf2
View commit details
Copy full SHA for 6974cf2
View code at this point
Browse repository at this point
Issue #27776: _PyRandom_Init() doesn't call PyErr_CheckSignals() anymore
Show description for cecdd96
vstinner
committed
cecdd96
View commit details
Copy full SHA for cecdd96
View code at this point
Browse repository at this point
Issue #27776: Cleanup random.c
Show description for 4bad3b6
vstinner
committed
4bad3b6
View commit details
Copy full SHA for 4bad3b6
View code at this point
Browse repository at this point
Commits on Jul 29, 2016
Issue #17596: MINGW: add wincrypt.h in Python/random.c
Show description for d2f8747
vadmium
committed
d2f8747
View commit details
Copy full SHA for d2f8747
View code at this point
Browse repository at this point
Commits on Jun 16, 2016
Merge 3.5
vstinner
committed
a63073a
View commit details
Copy full SHA for a63073a
View code at this point
Browse repository at this point
py_getrandom(): use long type for the syscall() result
Show description for ec721f3
vstinner
committed
ec721f3
View commit details
Copy full SHA for ec721f3
View code at this point
Browse repository at this point
Commits on Jun 14, 2016
Merge 3.5
vstinner
committed
d017176
View commit details
Copy full SHA for d017176
View code at this point
Browse repository at this point
cleanup random.c
Show description for c72828b
vstinner
committed
c72828b
View commit details
Copy full SHA for c72828b
View code at this point
Browse repository at this point
Merge 3.5 (os.urandom, issue #27278)
vstinner
committed
370f513
View commit details
Copy full SHA for 370f513
View code at this point
Browse repository at this point
Fix os.urandom() using getrandom() on Linux
Show description for b98a36e
vstinner
committed
b98a36e
View commit details
Copy full SHA for b98a36e
View code at this point
Browse repository at this point
Commits on Jun 10, 2016
Merge comment fix from 3.5
vadmium
committed
596357d
View commit details
Copy full SHA for 596357d
View code at this point
Browse repository at this point
Fix typo and move comment to appropriate condition
vadmium
committed
39b1025
View commit details
Copy full SHA for 39b1025
View code at this point
Browse repository at this point
Commits on Jun 8, 2016
py_getrandom(): use char* instead of void* for the destination
Show description for cfb1961
vstinner
committed
cfb1961
View commit details
Copy full SHA for cfb1961
View code at this point
Browse repository at this point
Commits on Jun 7, 2016
Merge 3.5 (os.urandom)
vstinner
committed
9ff9cbd
View commit details
Copy full SHA for 9ff9cbd
View code at this point
Browse repository at this point
os.urandom() doesn't block on Linux anymore
Show description for dddf484
vstinner
committed
dddf484
View commit details
Copy full SHA for dddf484
View code at this point
Browse repository at this point
Commits on Apr 12, 2016
Merge 3.5 (os.urandom)
vstinner
committed
7258176
View commit details
Copy full SHA for 7258176
View code at this point
Browse repository at this point
Fix os.urandom() on Solaris 11.3
Show description for 9d24271
vstinner
committed
9d24271
View commit details
Copy full SHA for 9d24271
View code at this point
Browse repository at this point
Commits on Nov 7, 2015
Issue #25558: Use compile-time asserts.
serhiy-storchaka
committed
fad85aa
View commit details
Copy full SHA for fad85aa
View code at this point
Browse repository at this point
Commits on Oct 1, 2015
Merge 3.4 (os.urandom)
vstinner
committed
861f067
View commit details
Copy full SHA for 861f067
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.