Generating key for shmget() with using ftok() - HP UX

This is a discussion on Generating key for shmget() with using ftok() - HP UX ; > uname -smrsv
HP-UX B.11.23 U ia64
Several users need to create segments of shared memory. Duplicate keys
must be avoided.
Does '(valid) usage of ftok()' guaranty that?
It seems that the following actions should be done:
A1) Create some ...