proper seeded flag generation