0.2.2 DEVRANDOM

This commit is contained in:
Rob Tillaart 2023-10-24 15:46:58 +02:00
parent 3231e127bc
commit 1843098412
6 changed files with 45 additions and 13 deletions

View File

@ -6,11 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.2] - 2023-10-24
- update readme.md
- fix version in .cpp
## [0.2.1] - 2022-10-31
- add changelog.md
- add rp2040 to build-CI
## [0.2.0] - 2022-07-02
- add Marsaglia PRNG, is portable over platforms, becomes mode 3
- improved reseeding

View File

@ -1,11 +1,9 @@
//
// FILE: DEVRANDOM.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.0
// VERSION: 0.2.2
// PURPOSE: Arduino library for a /dev/random stream - useful for testing
// URL: https://github.com/RobTillaart/DEVRANDOM
//
// HISTORY: see changelog.md
#include "DEVRANDOM.h"
@ -168,5 +166,5 @@ uint32_t DEVRANDOM::_marsaglia()
}
// -- END OF FILE --
// -- END OF FILE --

View File

@ -2,16 +2,15 @@
//
// FILE: DEVRANDOM.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.1
// VERSION: 0.2.2
// PURPOSE: Arduino library for a /dev/random stream - useful for testing
// URL: https://github.com/RobTillaart/DEVRANDOM
//
#include "Arduino.h"
#define DEVRANDOM_LIB_VERSION (F("0.2.1"))
#define DEVRANDOM_LIB_VERSION (F("0.2.2"))
#define DEVRANDOM_MODE_RANDOM 0
@ -72,5 +71,5 @@ private:
};
// -- END OF FILE --
// -- END OF FILE --

View File

@ -2,8 +2,11 @@
[![Arduino CI](https://github.com/RobTillaart/DEVRANDOM/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![Arduino-lint](https://github.com/RobTillaart/DEVRANDOM/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/DEVRANDOM/actions/workflows/arduino-lint.yml)
[![JSON check](https://github.com/RobTillaart/DEVRANDOM/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/DEVRANDOM/actions/workflows/jsoncheck.yml)
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/DEVRANDOM.svg)](https://github.com/RobTillaart/DEVRANDOM/issues)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/DEVRANDOM/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RobTillaart/DEVRANDOM.svg?maxAge=3600)](https://github.com/RobTillaart/DEVRANDOM/releases)
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/DEVRANDOM.svg)](https://registry.platformio.org/libraries/robtillaart/DEVRANDOM)
# DEVRANDOM
@ -17,8 +20,19 @@ The library implements a stream class that mimics the /dev/random
device of a Linux system. It can be used for testing with streams.
#### Related
- https://github.com/RobTillaart/DEVFULL
- https://github.com/RobTillaart/DEVNULL
- https://github.com/RobTillaart/DEVRANDOM
## Interface
```cpp
#include "DEVRANDOM.h"
```
### Constructor
- **DEVRANDOM()** Constructor.
@ -106,7 +120,14 @@ So a password generator is a bit more difficult (and a good exercise).
## Future
#### Must
- improve documentation.
#### Should
#### Could
- add examples.
- add other (portable) PRNG.
- **available()** returns 1,
@ -116,4 +137,14 @@ So a password generator is a bit more difficult (and a good exercise).
- when changing mode should \_next == **peek()** be reset?
- yes, think so ```_next = _rnd();```
- when already in that mode? (=> complex)
#### Wont
## Support
If you appreciate my libraries, you can support the development and maintenance.
Improve the quality of the libraries by providing issues and Pull Requests, or
donate through PayPal or GitHub sponsors.
Thank you,

View File

@ -15,9 +15,9 @@
"type": "git",
"url": "https://github.com/RobTillaart/DEVRANDOM.git"
},
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",
"frameworks": "arduino",
"frameworks": "*",
"platforms": "*",
"headers": "DEVRANDOM.h"
}

View File

@ -1,5 +1,5 @@
name=DEVRANDOM
version=0.2.1
version=0.2.2
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library to wrap a random generator in a stream