Initialize generator before first random number
Use 'random' instead of 'drand48'

While the latter is available only on Darwin, the former is available on
both Darwin and Linux.