[html5] r5055 - [giow] (1) Move the random letter generator step to before the spaces step so th [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Apr 15 01:04:46 PDT 2010


Author: ianh
Date: 2010-04-15 01:04:45 -0700 (Thu, 15 Apr 2010)
New Revision: 5055

Modified:
   complete.html
   source
Log:
[giow] (1) Move the random letter generator step to before the spaces step so that we can avoid putting spaces at the start or end of the string. Thanks to zcorpan for this brilliant idea.

Modified: complete.html
===================================================================
--- complete.html	2010-04-15 07:12:14 UTC (rev 5054)
+++ complete.html	2010-04-15 08:04:45 UTC (rev 5055)
@@ -69880,22 +69880,6 @@
 
    <li>
 
-    <p>Insert <var title="">spaces<sub>1</sub></var> U+0020 SPACE
-    characters into <var title="">key<sub>1</sub></var> at random
-    positions.</p>
-
-    <p>Insert <var title="">spaces<sub>2</sub></var> U+0020 SPACE
-    characters into <var title="">key<sub>2</sub></var> at random
-    positions.</p>
-
-    <p class=example>Continuing the example, this could lead to
-    "388 5037  7  15" and
-    "1   0 3  4 97 53 31".</p>
-
-   </li>
-
-   <li>
-
     <p>Insert between one and twelve random characters from
     the ranges U+0021 to U+002F and U+003A to U+007E into <var title="">key<sub>1</sub></var> at random positions.</p>
 
@@ -69907,7 +69891,23 @@
     character.</p>
 
     <p class=example>Continuing the example, this could lead to
-    "388P O503D&ul7 {K%gX( %7  15" and
+    "P388O503D&ul7{K%gX(%715" and
+    "1N?|kUT0or3o4I97N5-S3O31".</p>
+
+   </li>
+
+   <li>
+
+    <p>Insert <var title="">spaces<sub>1</sub></var> U+0020 SPACE
+    characters into <var title="">key<sub>1</sub></var> at random
+    positions other than the start or end of the string.</p>
+
+    <p>Insert <var title="">spaces<sub>2</sub></var> U+0020 SPACE
+    characters into <var title="">key<sub>2</sub></var> at random
+    positions other than the start or end of the string.</p>
+
+    <p class=example>Continuing the example, this could lead to
+    "P388 O503D&ul7 {K%gX( %7  15" and
     "1 N ?|k UT0or 3o  4 I97N 5-S3O 31".</p>
 
    </li>

Modified: source
===================================================================
--- source	2010-04-15 07:12:14 UTC (rev 5054)
+++ source	2010-04-15 08:04:45 UTC (rev 5055)
@@ -78407,22 +78407,6 @@
 
    <li>
 
-    <p>Insert <var title="">spaces<sub>1</sub></var> U+0020 SPACE
-    characters into <var title="">key<sub>1</sub></var> at random
-    positions.</p>
-
-    <p>Insert <var title="">spaces<sub>2</sub></var> U+0020 SPACE
-    characters into <var title="">key<sub>2</sub></var> at random
-    positions.</p>
-
-    <p class="example">Continuing the example, this could lead to
-    "388 5037  7  15" and
-    "1   0 3  4 97 53 31".</p>
-
-   </li>
-
-   <li>
-
     <p>Insert between one and twelve random characters from
     the ranges U+0021 to U+002F and U+003A to U+007E into <var
     title="">key<sub>1</sub></var> at random positions.</p>
@@ -78436,7 +78420,23 @@
     character.</p>
 
     <p class="example">Continuing the example, this could lead to
-    "388P O503D&ul7 {K%gX( %7  15" and
+    "P388O503D&ul7{K%gX(%715" and
+    "1N?|kUT0or3o4I97N5-S3O31".</p>
+
+   </li>
+
+   <li>
+
+    <p>Insert <var title="">spaces<sub>1</sub></var> U+0020 SPACE
+    characters into <var title="">key<sub>1</sub></var> at random
+    positions other than the start or end of the string.</p>
+
+    <p>Insert <var title="">spaces<sub>2</sub></var> U+0020 SPACE
+    characters into <var title="">key<sub>2</sub></var> at random
+    positions other than the start or end of the string.</p>
+
+    <p class="example">Continuing the example, this could lead to
+    "P388 O503D&ul7 {K%gX( %7  15" and
     "1 N ?|k UT0or 3o  4 I97N 5-S3O 31".</p>
 
    </li>




More information about the Commit-Watchers mailing list