summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 23:49:29 +0100
committerGeorg Brandl <georg@python.org>2012-02-20 23:49:29 +0100
commiteaf13a8a4e88531bc5219ffa0d751bf618a6934a (patch)
tree4d00c7610c396270409e1ba638405ad08e3e509b /Python/random.c
parentbfb3c3fd05e003823593f7dc1b76a03b9921e4f5 (diff)
downloadcpython-eaf13a8a4e88531bc5219ffa0d751bf618a6934a.tar.gz
Fix typo in conditional.
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index 327166e26a..01cd83aa56 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);