package com.vsct.dt.haas.admin.core.event;

import java.util.Random;

/**
 * Created by william_montaz on 10/02/2016.
 */
public class CorrelationId {

    private static Random random = new Random();

    public static String newCorrelationId() {
        return Long.toString(random.nextLong());
    }

}

@@ -61,16 +61,39 @@
 .Random;
+%0Aimport java.util.UUID;
 %0A%0A/**%0A *
@@ -172,58 +172,8 @@
  %7B%0A%0A
-    private static Random random = new Random();%0A%0A
     
@@ -233,40 +233,36 @@
 urn 
-Long.toString(random.nextLo
+UUID.randomUUID().toStri
 ng()
-)
 ;%0A  

CorrelationID provided as UUID