summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-12 22:38:22 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-04-12 22:38:22 +0200
commit41b23ceb6096465e084e523123ace6b84dfd1a0b (patch)
tree6bec91164a14239af5a3e82bb7327c117198fbc7 /Python/random.c
parentc77059245698d93a6581d97018a3d524102b0416 (diff)
parentbfb0d6f75baf75fc8d5bc6abd437ca356e53fe89 (diff)
downloadcpython-41b23ceb6096465e084e523123ace6b84dfd1a0b.tar.gz
Merge 3.5 (os.urandom)
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;