summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 22:49:29 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-20 22:49:29 (GMT)
commit12897d7d395f5907e0f9a3694ba3c64c329db0dd (patch)
treea96e5ae730f63dbdf739444b44fd2f84a7cefaee
parenta3ed11bd3409d61e6eb35995743e405790df2d3c (diff)
downloadcpython-12897d7d395f5907e0f9a3694ba3c64c329db0dd.zip
cpython-12897d7d395f5907e0f9a3694ba3c64c329db0dd.tar.gz
cpython-12897d7d395f5907e0f9a3694ba3c64c329db0dd.tar.bz2
Fix typo in conditional.
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index 327166e..01cd83a 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -269,7 +269,7 @@ _PyRandom_Init(void)
*/
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);