Hello Fabian!
Probably sys(3) is a good source for serial numbers.
>
>I am looking for a function or set of function to create
>serial numbers and activation keys .
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer