Category:Wren-srandom: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Tidied links.)
m (Now using internal links to related pages)
 
Line 2:
'''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 [https[://rosettacode.org/wiki/Category:Wren |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 [https[://rosettacode.org/wiki/Category_talk:Wren-srandom |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.

Latest revision as of 15:10, 9 May 2023

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.