aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-03-16 16:35:05 +0100
committerRickard Green <[email protected]>2015-03-20 15:28:54 +0100
commit403fe576cd71bf32c7e42b782bf3181d809bbc88 (patch)
tree9efd2c6458db1762132a3a4cb890870a81756d60 /lib/asn1
parentfdd095a4ee0e09f888a2c779928fa6923babcf7f (diff)
downloadotp-403fe576cd71bf32c7e42b782bf3181d809bbc88.tar.gz
otp-403fe576cd71bf32c7e42b782bf3181d809bbc88.tar.bz2
otp-403fe576cd71bf32c7e42b782bf3181d809bbc88.zip
asn1 test SUITE: Eliminate use of now/0
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/test/testPrimStrings.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/test/testPrimStrings.erl b/lib/asn1/test/testPrimStrings.erl
index 155d6f6ff5..43835728e8 100644
--- a/lib/asn1/test/testPrimStrings.erl
+++ b/lib/asn1/test/testPrimStrings.erl
@@ -232,7 +232,8 @@ bit_string(Rules, Opts) ->
end.
random_bits(N) ->
- Seed = integer_to_list(erlang:phash2(erlang:now())),
+ Seed0 = {erlang:monotonic_time(),erlang:unique_integer()},
+ Seed = integer_to_list(erlang:phash2(Seed0)),
random_bits(<<>>, N, Seed).
random_bits(Bin, N, Seed) ->