Produced by Araxis Merge on 3/27/2019 4:02:16 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | JLV_CV_CV_2_9_1_0.zip\CV-CCP\src\java\gov\va\med\common | Demo.java | Wed Mar 20 21:43:46 2019 UTC |
2 | JLV_CV_CV_2_9_1_0.zip\CV-CCP\src\java\gov\va\med\common | Demo.java | Wed Mar 27 19:21:14 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 110 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /* | |
2 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Honor able Senat or Daniel K. Inouye | |
7 | * VA Pa cific Isla nds Health Care Syst em | |
8 | * Tripl er Army Me dical Cent er | |
9 | * | |
10 | * License d under th e Apache L icense, Ve rsion 2.0 (the "Lice nse"); you may not u se this fi le except in complia nce with t he License . | |
11 | * | |
12 | * You may obtain a copy of th e License at: | |
13 | * | |
14 | * http:/ /www.apach e.org/lice nses/LICEN SE-2.0.txt | |
15 | * | |
16 | * Unless required b y applicab le law or agreed to in writing , software | |
17 | * distrib uted under the Licen se is dist ributed on an "AS IS " BASIS, | |
18 | * WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied. | |
19 | * See the License f or the spe cific lang uage gover ning permi ssions and limitatio ns under t he License . | |
20 | */ | |
21 | ||
22 | ||
23 | package go v.va.med.c ommon; | |
24 | ||
25 | import jav a.security .SecureRan dom; | |
26 | ||
27 | /** | |
28 | * Created by Intell iJ IDEA. | |
29 | * User: DNS | |
30 | * Date: 5 /23/11 | |
31 | * Time: 2 :14 PM | |
32 | * To chan ge this te mplate use File | Se ttings | F ile Templa tes. | |
33 | */ | |
34 | public cla ss Demo { | |
35 | ||
36 | public static St ring scram ble(String word) { | |
37 | in t wordLeng th = word. length(); | |
38 | St ringBuilde r builder = new Stri ngBuilder( wordLength ); | |
39 | bo olean[] us ed = new b oolean[wor dLength]; | |
40 | ||
41 | Se cureRandom secureRan dom = new SecureRand om(); | |
42 | se cureRandom .setSeed(S ystem.curr entTimeMil lis()); | |
43 | ||
44 | fo r (int i = 0; i < wo rdLength; i++) { | |
45 | int rndI ndex; | |
46 | do { | |
47 | rndI ndex = sec ureRandom. nextInt(wo rdLength); | |
48 | } while (used[rndI ndex]); | |
49 | used[rnd Index] = t rue; | |
50 | builder. append(wor d.charAt(r ndIndex)); | |
51 | } | |
52 | re turn build er.toStrin g(); | |
53 | } | |
54 | ||
55 | ||
56 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.