SIGN IN SIGN UP

wasm/sdk: handle random seed needed by 'uuid.rfc4122()' (#3623)

There random seed to be used with the host-provided builtin uuid.rfc4122
was missing from the BuiltinContext that's created in the dispatcher. It
hadn't been thread through from rego to the vm call.

The unit tests for the builtin now run against both targets.

Also some style adjustments to the builtin code for uuid.rfc4122.

Fixes #3622.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
S
Stephan Renatus committed
8f489988cefbd36911778f03e79f8bc61c01282b
Parent: 9d2a804
Committed by GitHub <noreply@github.com> on 7/8/2021, 6:12:43 PM