some webxdc apps have a need to have some random seed per instance, for example Reactle game (wordle clon) would benefit from having some unique seed per instance to having different words of the day in every chat, so you can play the game with different groups of friends/family
the problem why it is not feasible to do the seed generation in one of the users is side, is because then it becomes a synchronization problem, and the seed could be different from one user to another, it needs to be a seed that is shared by all the group members,
one easy way to implement this is to use some of the unique properties of the message instance like its message id or the send date, and use that to generate a seed,
the sent date is interesting, because just exposing this field opens some opportunities for app developers:
- it is common to set seeds in existing “random” libraries/APIs using a timestamp/date
- if the sent date is set, the app knows it is actually in sent state, if it is null the app developer can detect the app is in staged mode and offer hints/help or prevent misuse/cheating
- the app could also use the date for its logic like shared/synchronized/common “world creation” / start in a game, a game / content that expires, etc.