]> granicus.if.org Git - python/commit
Issue #27776: Cleanup random.c
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 16 Aug 2016 13:23:58 +0000 (15:23 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 16 Aug 2016 13:23:58 +0000 (15:23 +0200)
commit4bad3b622e119cea330e0c0a8a6dc26b98f17d53
tree1e28ef490cbfd23a3d6276a1a3a7f9575562ac8e
parentc35a32fe850c3fc1edf32569b7aee8468209a23f
Issue #27776: Cleanup random.c

* Add pyurandom() helper function to factorize the code
* don't call Py_FatalError() in helper functions, but only in _PyRandom_Init()
  if pyurandom() failed, to uniformize the code
Python/random.c