diff options
author | Hans Nilsson <[email protected]> | 2016-12-01 13:33:15 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-12-14 11:46:46 +0100 |
commit | 7300d01bedaed1fbb213378d43589b4448aa5d3b (patch) | |
tree | e6c43acb5f6d6f2336e77eaf68584c31f4072b7b /lib/ssh/test/ssh_test_lib.erl | |
parent | a8ea98ef814022dc02a1917105a0572007952e52 (diff) | |
download | otp-7300d01bedaed1fbb213378d43589b4448aa5d3b.tar.gz otp-7300d01bedaed1fbb213378d43589b4448aa5d3b.tar.bz2 otp-7300d01bedaed1fbb213378d43589b4448aa5d3b.zip |
ssh: [test] Move fn random_chars/1 to ssh_test_lib
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.erl')
-rw-r--r-- | lib/ssh/test/ssh_test_lib.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl index 1154f18991..27fc9ed6ad 100644 --- a/lib/ssh/test/ssh_test_lib.erl +++ b/lib/ssh/test/ssh_test_lib.erl @@ -842,3 +842,8 @@ get_kex_init(Conn, Ref, TRef) -> end end. +%%%---------------------------------------------------------------- +%%% Return a string with N random characters +%%% +random_chars(N) -> [crypto:rand_uniform($a,$z) || _<-lists:duplicate(N,x)]. + |