Commit 9edceb3e authored by Antoine Pitrou's avatar Antoine Pitrou

Merge

parents e9f637b0 2697cd1a
...@@ -269,7 +269,7 @@ _PyRandom_Init(void) ...@@ -269,7 +269,7 @@ _PyRandom_Init(void)
*/ */
env = Py_GETENV("PYTHONHASHSEED"); env = Py_GETENV("PYTHONHASHSEED");
if (env && *env != '\0' & strcmp(env, "random") != 0) { if (env && *env != '\0' && strcmp(env, "random") != 0) {
char *endptr = env; char *endptr = env;
unsigned long seed; unsigned long seed;
seed = strtoul(env, &endptr, 10); seed = strtoul(env, &endptr, 10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment