cryptol/tests/issues/issue364.cry
Robert Dockins 0b9c186132 Make 'random' compute on concrete inputs in the symbolic evaluator.
This patch does not add a warning when using 'random' in symbolic expressions.
We currently don't have any organized mechanism for generating warnings during
evaluation, and the value of emitting such a warning is debatable.

Fixes #364
2017-07-27 15:45:37 -07:00

12 lines
216 B
Plaintext

x : [64]
x = random 123
x_val : [64]
x_val = 0x80b483887be1a6e5
property x_eval = x == x_val
property x_distinct = ~ (x == zero)
property moderately_bogus_property (seed:[8]) =
~(random (zero#seed) == (0:[64]))