diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 12:43:21 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 17:24:43 +0100 |
| commit | d9eb63d9c463743e839bf3255476166cb996d693 (patch) | |
| tree | 7f9ffbc1886c354fbd94189d092322c785f30a02 /example/expression/expr_random.py | |
| parent | 29a65d37ba8cc3c1e4b06807d4dee3ef32bb2e8f (diff) | |
| download | focaccia-miasm-d9eb63d9c463743e839bf3255476166cb996d693.tar.gz focaccia-miasm-d9eb63d9c463743e839bf3255476166cb996d693.zip | |
Example/Expression: Set the seed for ExprRandom uses
Diffstat (limited to 'example/expression/expr_random.py')
| -rw-r--r-- | example/expression/expr_random.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/expression/expr_random.py b/example/expression/expr_random.py index 1d399091..66c09f2e 100644 --- a/example/expression/expr_random.py +++ b/example/expression/expr_random.py @@ -1,10 +1,14 @@ import string +import random from miasm2.expression.expression_helper import ExprRandom print "Simple expression generator\n" depth = 8 +seed = 0 +random.seed(seed) + print "- An ID:" print ExprRandom.identifier() print "- A number:" |