Category:Wren-srandom

From Rosetta Code
Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

Wren-srandom is a small module which generates secure random integers from the /dev/urandom special file on Linux or other Unix-like operating systems. It consists of a single class SRandom which has three static methods

It is the twenty-third in a series of modules (listed on the language's main page) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.

To use it you need to copy the source code (in the talk page) to a text file called srandom.wren and place this in the same directory as the importing script so the command line interpreter can find it.

Wren-srandom has a dependency on the IO module which is part of Wren-cli's standard library. As such (and unlike Wren-crypto) it can only be used in a Wren-cli script.

Pages in category "Wren-srandom"

The following 2 pages are in this category, out of 2 total.