I'd just stick this whole thing in pure ruby:

```
def srand
   Random::DEFAULT.srand(seed)
```