diff options
author | Björn Gustavsson <[email protected]> | 2015-03-16 16:35:05 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2015-03-20 15:28:54 +0100 |
commit | 403fe576cd71bf32c7e42b782bf3181d809bbc88 (patch) | |
tree | 9efd2c6458db1762132a3a4cb890870a81756d60 /lib | |
parent | fdd095a4ee0e09f888a2c779928fa6923babcf7f (diff) | |
download | otp-403fe576cd71bf32c7e42b782bf3181d809bbc88.tar.gz otp-403fe576cd71bf32c7e42b782bf3181d809bbc88.tar.bz2 otp-403fe576cd71bf32c7e42b782bf3181d809bbc88.zip |
asn1 test SUITE: Eliminate use of now/0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asn1/test/testPrimStrings.erl | 3 |
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) -> |