[Numpy-svn] [numpy/numpy] 83d890: BUG: internal call fix in random.choice

GitHub noreply@github....
Sat Dec 15 06:28:51 CST 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 83d890e21ecd991976a44af040521fd800c7a175
      https://github.com/numpy/numpy/commit/83d890e21ecd991976a44af040521fd800c7a175
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2012-12-14 (Fri, 14 Dec 2012)

  Changed paths:
    M numpy/random/mtrand/mtrand.c
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_regression.py

  Log Message:
  -----------
  BUG: internal call fix in random.choice

An random.random call from within mtrand was done by a call to
np.random.random instead of inside the class. This can possibly lead
to non-deterministic results after seeding.


  Commit: 5f04dc8a53346e8225d0865a0e7064e4f4d93d4b
      https://github.com/numpy/numpy/commit/5f04dc8a53346e8225d0865a0e7064e4f4d93d4b
  Author: njsmith <njs@pobox.com>
  Date:   2012-12-15 (Sat, 15 Dec 2012)

  Changed paths:
    M numpy/random/mtrand/mtrand.c
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #2823 from seberg/random-choice-state

BUG: internal call fix in random.choice


Compare: https://github.com/numpy/numpy/compare/7706227842c5...5f04dc8a5334


More information about the Numpy-svn mailing list