Re: [xsl] Random UUID in pure XSLT?

Subject: Re: [xsl] Random UUID in pure XSLT?
From: "John Lumley john@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Nov 2020 17:06:46 -0000
On 10/11/2020 16:51, Martin Honnen martin.honnen@xxxxxx wrote:
HE 10 with higher-order function support (which is not available in HE
9.8 and 9.9) has at least support for fn:random-number-generator, Saxon
JS 2 also supports that function.

SaxonJS2 does support fn:random-number-generator, based on JavaScript Math.random() in successive calls. MDN strongly suggests that this will not provide cryptographically secure random numbers, nor indeed for anything related to security. There is no support for seeding the sequence provided.


--
*John Lumley* MA PhD CEng FIEE
john@xxxxxxxxxxxx <mailto:john@xxxxxxxxxxxx>
on behalf of Saxonica Ltd

Current Thread