-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create generate-random-numbers-using-the-delphi-lcg.yml
- Loading branch information
1 parent
126e084
commit b7555ec
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
rule: | ||
meta: | ||
name: generate random numbers using the Delphi LCG | ||
namespace: data-manipulation/prng/lcg | ||
author: [email protected] | ||
scope: basic block | ||
mbc: | ||
- Cryptography::Generate Pseudo-random Sequence [C0021] | ||
references: | ||
- https://en.wikipedia.org/wiki/Linear_congruential_generator | ||
- https://community.osr.com/discussion/130410/generating-random-numbers | ||
features: | ||
- and: | ||
- mnemonic: imul | ||
- number: 0x8088405 = multiplier a | ||
- mnemonic: inc = increment c |