Skip to content

What purpose does the random char on the GitHub query string serve? #64

Answered by ezeoleaf
savagedev asked this question in Q&A
Discussion options

You must be logged in to vote

So, when using the search API from Github, if you search by a topic or language, you always get the same 1000 repositories (the best ranked for example).
If we add a randomChar to our call to the searchAPI we add even more randomness. Otherwise we were always picking a repository from the same 1000. Now, if randomChar is send to the searchAPI, we get a whole different set of 1000 repositories.
It was added to improve randomness and the publishing of repositories with not so many stars.

Does this make sense?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by savagedev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants