diff Python/random.c @ 75087:ab1886e7fc19 3.2

Fix typo in conditional.
author Georg Brandl <georg@python.org>
date Mon, 20 Feb 2012 23:49:29 +0100
parents f4b7ecf8a5f8
children 160a56eac332
line wrap: on
line diff
--- a/Python/random.c	Mon Feb 20 23:37:36 2012 +0100
+++ b/Python/random.c	Mon Feb 20 23:49:29 2012 +0100
@@ -269,7 +269,7 @@
     */
 
     env = Py_GETENV("PYTHONHASHSEED");
-    if (env && *env != '\0' & strcmp(env, "random") != 0) {
+    if (env && *env != '\0' && strcmp(env, "random") != 0) {
         char *endptr = env;
         unsigned long seed;
         seed = strtoul(env, &endptr, 10);