On a pretty similar note - If you're on (most) unix-based systems you can use the special devices "/dev/random" and "/dev/urandom".
These are special devices that gather entropy across the whole system. Random takes input and may block, urandom doesn't require input and won't block (but doesn't necessarily have the same level of entropy).
These are special devices that gather entropy across the whole system. Random takes input and may block, urandom doesn't require input and won't block (but doesn't necessarily have the same level of entropy).