You are right about the file descriptors, but moving away from a global variable would make things a little less pathological. It's been awhile since I filed this, but if my memory serves me correctly, your suggestion should work. You could also look at how often the random numbers are actually required; perhaps, explicitly opening and closing the file as needed, rather than leaving it open, might be cleaner if accesses are sparse. Thanks for the reply on this issue. On Sun, Nov 1, 2009 at 9:36 PM, Robey Pointer