简体   繁体   中英

Why RandomData.ALG_TRNG does not exist in javacard development kit 3.0.5?

I am trying to use ALG_TRNG for random number generation in my applet, but I don't know why neither IntelliJ nor Eclipse do not autocomplete javacard.security.RandomData.OneShot or javacard.security.RandomData.ALG_TRNG . I have downloaded JCDK from here . I think these two have added to JCDK from the 3.0.5 version, isn't it?

It should work since ALG_TRNG is supported since 3.0.5. try creating an object of RandomData and see if u get any error.

RandomData o_Rand = RandomData.getInstance(RandomData.ALG_TRNG);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM