jeudi 19 novembre 2020

Does RandomStringUtils create a predictable sequence?

On a Java application server we use RandomStringUtils.randomAlphabetic() to sequentially create HTML-IDs for recurring similar paragraphs in an iterating manner.

Via these generated IDs, we allow for an inner-page anchor navigation (without a page load triggered upon click).

Now the question is, can I use these generated IDs also for URLs linking from external pages to this target? According to my observation, subsequent requests to the same page, create the same sequence of IDs. If the generated sequence of randomAlphabetic is indeed predictable (also over multiple page loads), we could not only use these links for inner-page navigation, but also for links referring from outside, since the first, second, third, ... generated ID would always be the same.




Aucun commentaire:

Enregistrer un commentaire