Odd one, varnish doesn't recognize symbol for std.rand

Kari Cowan kcowan at alm.com
Fri Aug 25 17:12:59 UTC 2023


Probably a stupid question, but I have at the top of my file:

import std;

But varnish doesn't recognize symbol for std.rand


Aug 25 03:03:35 almstgvarnish124 varnishd[910081]: Message from
VCC-compiler:
Aug 25 03:03:35 almstgvarnish124 varnishd[910081]: Symbol not found:
'std.rand'
Aug 25 03:03:35 almstgvarnish124 varnishd[910081]: At:
('/etc/varnish/default.vcl' Line 94 Pos 17) -- (Pos 24)
Aug 25 03:03:35 almstgvarnish124 varnishd[910081]:             if
(std.rand(0, 100) < 50) {
Aug 25 03:03:35 almstgvarnish124 varnishd[910081]:
----------------########----------------

Seems odd... I thought it was included in the 7.3 distribution.  How do I
fix that?

---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20230825/7a0e0e23/attachment.html>


More information about the varnish-dev mailing list