Mercurial > cpython-lru_cache-weakref
diff Python/random.c @ 75088:cd61c71a017c 3.1
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 15:20:37 2012 -0500 +++ 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);
