/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/common/Utils.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-28 13:56:55 UTC
  • mfrom: (15.2.6 more-db)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: gustav.hartvigsson@gmail.com-20170828135655-2957uxa474qkwsx4
* merge?

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  static public String
16
16
  real_hash_func (String t, String s) {
17
17
    int a = t.getBytes()[0];
18
 
    @SuppressWarnings("unused")
19
18
    int b = t.getBytes()[a%t.length()];
20
19
    
21
 
    /* Rotate the string as here:
22
 
     *  
23
 
     */
24
 
    
25
 
    
26
 
    return null;
 
20
    StringBuilder sb = new StringBuilder ();
 
21
    sb.append (t).insert (b, s);
 
22
    
 
23
    return sb.toString();
27
24
  }
28
25
  
29
26
  /**