Accept the old name with a warning for compatibility.
Print warnings if old names are used, but accept them for compatibility.
Use ideas and code from https://github.com/preshing/RandomSequence to generate a sequence of unique 32-bit numbers. Make the code thread-safe as the corresponding Lua function in sysbench might be used in a concurrent context.