diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-04-12 22:38:22 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-04-12 22:38:22 +0200 |
commit | 41b23ceb6096465e084e523123ace6b84dfd1a0b (patch) | |
tree | 6bec91164a14239af5a3e82bb7327c117198fbc7 /Python/random.c | |
parent | c77059245698d93a6581d97018a3d524102b0416 (diff) | |
parent | bfb0d6f75baf75fc8d5bc6abd437ca356e53fe89 (diff) | |
download | cpython-41b23ceb6096465e084e523123ace6b84dfd1a0b.tar.gz |
Merge 3.5 (os.urandom)
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 2 |
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; |