This library is likely not a straight import into your embedded project: you will need to set it up to use your locks and talk to your hardware random number generator. In a future article I will demonstrate how to port this to your system.
There are a variety of sources for arc4random. Apple has also ported this to their platform and uses it multiple places. Here are some example implementations to use as a starting point:
- crypt project: arc4random implementation
- Apple Open Source