view Python/getplatform.c @ 78873:2e8b01583839 3.2

Issue #15340: Fix importing the random module when /dev/urandom cannot be opened. This was a regression caused by the hash randomization patch.
author Antoine Pitrou <solipsis@pitrou.net>
date Fri, 07 Sep 2012 23:49:07 +0200
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}