Seems like Xeger can benefit from holding its own random instance. One way that it is useful is the capability of seeding Xeger so that it can reproduce the same string given the same regex.
Changes
Xeger now calls its own random instance for random generation
Xeger now support a .seed(n) function to seed the instance
added test scenario for separate, seeded Xeger instance to generate the same string
Seems like Xeger can benefit from holding its own random instance. One way that it is useful is the capability of seeding Xeger so that it can reproduce the same string given the same regex.
Changes