From 48af7dcb3e12ce6aca322338260d82ba5e0f24b1 Mon Sep 17 00:00:00 2001 From: galtm <40716346+galtm@users.noreply.github.com> Date: Tue, 29 Mar 2022 17:41:50 -0400 Subject: [PATCH] Iterate over sequence of characters, not positions (#1163) Implementing an idea from @wendellpiez: Instead of iterating over a numeric sequence that represents the position of each character in a long string, iterate over the sequence of characters. This change is in the implementation only, not in the function output. I used ad hoc modifications of the label="seq-length=10000" scenario in the XSpec test to check that the original and modified functions produce the same UUID sequence. --- src/utils/util/resolver-pipeline/random-util.xsl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/utils/util/resolver-pipeline/random-util.xsl b/src/utils/util/resolver-pipeline/random-util.xsl index 4c2d40971c..3fe4bdd665 100644 --- a/src/utils/util/resolver-pipeline/random-util.xsl +++ b/src/utils/util/resolver-pipeline/random-util.xsl @@ -83,14 +83,15 @@ v4 UUID - + + - + - - +