Skip to content
/ rsgen Public

random string generator - Simple Unicode-aware utility to generate pseudorandom strings using Mersenne twister as PRNG.

License

Notifications You must be signed in to change notification settings

pbasista/rsgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsgen
=====

A simple utility which generates pseudorandom strings.

This utility is Unicode-aware, which means that
it understands all the character encodings supported by the iconv
and it can generate files containing the pseudorandom strings made of
pseudorandom characters instead of just pseudorandom bytes.

Available pseudorandom number generators (PRNGs) are:

	1. Mersenne twister (as implemented by the randomc library,
				http://www.agner.org/random/)
	2. random() function
	3. /dev/urandom system file

Generated pseudorandom strings can contain either
the user-supplied characters or a continuous subset
of Unicode starting at the character 0x0100.

This application provides a single executable:
rsgen	outputs a file containing the desired number
	of pseudorandom characters generated using
	the specified type of pseudorandom number generator

Requirements:
-------------

For compiling:

C++ compiler and libraries at least partially conforming
to the 2011 ISO C++ standard (C++11), because of:
	- the type unsigned long long

and also at least partially conforming to the POSIX.1-2001 standard,
because of:
	- function iconv and related stuff
	- function getopt and related stuff


Compilation:
------------

It should be as easy as:

make

Usage:
------

Run the compiled executable without any parameters
and follow the provided instructions.

Copyright and license
=====================

Copyright 2012 Peter Bašista

rsgen is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Contact
-------

Peter Bašista	[email protected]

About

random string generator - Simple Unicode-aware utility to generate pseudorandom strings using Mersenne twister as PRNG.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published