The following demonstrates how to use MatLab scripting to download random bytes from SwiftRNG device when used with 64 bit Windows. Before using the following example, make sure the SwiftRNG device is plugged into one of USB ports available. A thread-safe and process-safe 64 bit SwiftRNG.dll is included in the software kit.
Note: The following method is deprecated. Please use an alternative method as described at this location.
A sample script fragment for retrieving one random byte from SwiftRNG device
loadlibrary ('.\windows-x64-vs-2017\SwiftRNG.dll', '.\windows-x64-vs-2017\SwiftRNG.h','alias','lib') b = calllib('lib','swftGetEntropyByteSynchronized')