mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
added bitwise stream container
This commit is contained in:
parent
ee79ff2b2d
commit
266f299f86
2 changed files with 158 additions and 0 deletions
|
|
@ -27,3 +27,7 @@ Sometimes we need a sequence of ["random enough"](https://en.wikipedia.org/wiki/
|
|||
Here a [Pseudorandom number generator](https://en.wikipedia.org/wiki/Pseudorandom_number_generator) can help by prodiving a deterministic and thus repeatable sequence of numbers.
|
||||
[George Marsaglia](https://en.wikipedia.org/wiki/George_Marsaglia) discovered a class of simple and fast pseudorandom number generators, which he called [Xorshift](https://en.wikipedia.org/wiki/Xorshift).
|
||||
|
||||
### [bitstream.hh](bitstream.hh)
|
||||
|
||||
When dealing with unaligned and arbitrary-bit-sized elements in a data stream, the bitwise stream container might help avoiding some headaches.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue