talloc: use the system pytalloc-util for python3 as well
[sfrench/samba-autobuild/.git] / lib / talloc / test_magic_differs.sh
1 #!/bin/sh
2 # This test ensures that two different talloc processes do not use the same
3 # magic value to lessen the opportunity for transferrable attacks.
4
5 echo "test: magic differs"
6
7 helper=$1
8 m1=$($helper)
9 m2=$($helper)
10
11 if [ $m1 -eq $m2 ]; then
12         echo "failure: magic remained the same between executions ($m1 vs $m2)"
13         exit 1
14 fi
15
16 echo "success: magic differs"