--- old/src/java.base/share/native/libjava/VM.c 2020-04-26 22:07:14.656343511 -0700 +++ new/src/java.base/share/native/libjava/VM.c 2020-04-26 22:07:14.528338693 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -61,3 +61,8 @@ jclass c) { JVM_InitializeFromArchive(env, c); } + +JNIEXPORT jlong JNICALL +Java_jdk_internal_misc_VM_getRandomSeedForCDSDump(JNIEnv *env, jclass ignore) { + return JVM_GetRandomSeedForCDSDump(); +}