Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9616)

Unified Diff: Modules/main.c

Issue 13704: Random number generator in Python core
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
--- a/Modules/main.c Fri Dec 30 21:26:08 2011 +0100
+++ b/Modules/main.c Tue Jan 03 21:48:43 2012 +0100
@@ -73,6 +73,7 @@
-O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\
-OO : remove doc-strings in addition to the -O optimizations\n\
-q : don't print version and copyright messages on interactive startup\n\
+-r : don't use randomized hash\n\
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\
-S : don't imply 'import site' on initialization\n\
";
@@ -381,6 +382,10 @@
Py_DontWriteBytecodeFlag++;
break;
+ case 'r':
+ Py_NoRandomHashFlag++;
+ break;
+
case 's':
Py_NoUserSiteDirectory++;
break;

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+