summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-05-28 01:07:08 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-05-28 01:07:08 +0000
commit30a919d162fc7f5072de7fecde86da3d9b43d3e8 (patch)
tree32f34d92e32755208fab34fcc543a8996b0039d3 /Python/random.c
parentf04b85e6c166e9f31aa167d63e92c49595c858d6 (diff)
parent1f1268c0bc93629b7abc16d8af9cf997c32a947b (diff)
downloadcpython-30a919d162fc7f5072de7fecde86da3d9b43d3e8.tar.gz
Issue #20699: Merge io bytes-like fixes from 3.5
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 79157b8b6f..839d7ad991 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -386,7 +386,7 @@ _PyRandom_Init(void)
char *env;
unsigned char *secret = (unsigned char *)&_Py_HashSecret.uc;
Py_ssize_t secret_size = sizeof(_Py_HashSecret_t);
- assert(secret_size == sizeof(_Py_HashSecret.uc));
+ Py_BUILD_ASSERT(sizeof(_Py_HashSecret_t) == sizeof(_Py_HashSecret.uc));
if (_Py_HashSecret_Initialized)
return;