Commits

Georg Brandl  committed cd61c71

Fix typo in conditional.

  • Participants
  • Parent commits 11b09df
  • Branches 3.1

Comments (0)

Files changed (1)

File Python/random.c

     */
 
     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);