This commit is contained in:
Antoine Pitrou 2012-02-20 23:51:50 +01:00
commit 9edceb3e59
1 changed files with 1 additions and 1 deletions

View File

@ -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);