On Sat, Jan 24, 2009 at 18:31, Nat Wilson <njwilso...@gmail.com> wrote: > It throws this out. > > Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) > [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import os > >>> os.urandom(16) > '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4' > >>>
Well, looking at the C code for random_seed(), I don't see a way for it to return NULL without having an exception set (assuming that the Python API calls aren't buggy). Except maybe the assert() call in there. When you built your Python, are you sure that -DNDEBUG was being used? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion