commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [8/9] commons-rng git commit: Userguide.
Date Tue, 18 Oct 2016 15:38:32 GMT
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 <erans@apache.org>
Authored: Tue Oct 18 16:39:49 2016 +0200
Committer: Gilles <erans@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);
 +--------------------------+
 
 


Mime
View raw message