Warning, /frameworks/syntax-highlighting/autotests/folding/std_b00001.vtc.fold is written in an unsupported language. File is not indexed.
0001 varnishtest "Test std.random()" 0002 0003 server s1 <beginfold id='1'>{</beginfold id='1'> 0004 rxreq 0005 txresp 0006 <endfold id='1'>}</endfold id='1'> -start 0007 0008 varnish v1 -vcl+backend <beginfold id='2'>{</beginfold id='2'> 0009 import std; 0010 0011 sub vcl_deliver <beginfold id='3'>{</beginfold id='3'> 0012 set resp.http.rnd1 = std.random(0, 1); 0013 set resp.http.rnd2 = std.random(0, 10); 0014 set resp.http.rnd3 = std.random(8, 10); 0015 set resp.http.rnd4 = std.random(99, 100); 0016 <endfold id='3'>}</endfold id='3'> 0017 <endfold id='2'>}</endfold id='2'> -start 0018 0019 varnish v1 -cliok "debug.srandom" 0020 0021 client c1 <beginfold id='4'>{</beginfold id='4'> 0022 txreq 0023 rxresp 0024 expect resp.http.rnd1 == 0.656 0025 expect resp.http.rnd2 == 0.390 0026 expect resp.http.rnd3 == 8.585 0027 expect resp.http.rnd4 == 99.636 0028 <endfold id='4'>}</endfold id='4'> -run