Just use map if these are one liners.

```scala
Gen.posNum[Long].map(Milliseconds(_))
```