You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2016/10/18 15:38:32 UTC

[8/9] commons-rng git commit: Userguide.

Userguide.


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/067a5707
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/067a5707
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/067a5707

Branch: refs/heads/master
Commit: 067a57076cca07d7dc9e0a74be52a9b4fac66a5c
Parents: a6b2a5b
Author: Gilles <er...@apache.org>
Authored: Tue Oct 18 16:39:49 2016 +0200
Committer: Gilles <er...@apache.org>
Committed: Tue Oct 18 16:39:49 2016 +0200

----------------------------------------------------------------------
 src/site/apt/userguide/rng.apt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/067a5707/src/site/apt/userguide/rng.apt
----------------------------------------------------------------------
diff --git a/src/site/apt/userguide/rng.apt b/src/site/apt/userguide/rng.apt
index c5b714e..e9128bf 100644
--- a/src/site/apt/userguide/rng.apt
+++ b/src/site/apt/userguide/rng.apt
@@ -74,8 +74,8 @@ rng.nextBytes(a);
 +--------------------------+
 +--------------------------+
 bytes[] a = new bytes[47];
-// Only elements between index 15 (included) and 32 (excluded) are replaced with random values.
-rng.nextBytes(a, 15, 32);
+// Replace 3 elements of the array (at indices 15, 16 and 17) with random values.
+rng.nextBytes(a, 15, 3);
 +--------------------------+