Questions about the random number generator function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Questions about the random number generator function

Jump to solution
1,456 Views
Derek_Yoon
Contributor I

Hello teams.

Hope all is well

I saw an NXP engineer's response to a TRNG related question on this board that "TRNG operates internally to generate the seed from which the PRNG is built."

So, does that mean there is no need to input a separate seed value to generate a random number?

 

Ps :  I know that when using the DRBG algorithm, it need to input a seed with a certain entropy. Are the DRBG algorithm and PRNG different concepts?

Tags (1)
0 Kudos
Reply
1 Solution
1,434 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Derek_Yoon 

Are we talking about CSEc on S32K1? It's given by SHE specification. Initial seed is generated by CMD_INIT_RNG command. Then you can generate random numbers while it is not necessary to reseed. The only additional thing you can do in runtime is to run CMD_EXTEND_SEED command to supply 128 bit of entropy. You can call this command whenever additional entropy is needed.

Regards,
Lukas

View solution in original post

0 Kudos
Reply
2 Replies
1,435 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Derek_Yoon 

Are we talking about CSEc on S32K1? It's given by SHE specification. Initial seed is generated by CMD_INIT_RNG command. Then you can generate random numbers while it is not necessary to reseed. The only additional thing you can do in runtime is to run CMD_EXTEND_SEED command to supply 128 bit of entropy. You can call this command whenever additional entropy is needed.

Regards,
Lukas

0 Kudos
Reply
1,416 Views
Derek_Yoon
Contributor I
That's right, I was asking about the CSEc on the S32K. Thanks for the help! My question is all cleared up
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1984173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EQuestions%20about%20the%20random%20number%20generator%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20teams.%3C%2FP%3E%3CP%3E%3CSPAN%3EHope%20all%20is%20well%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20saw%20an%20NXP%20engineer's%20response%20to%20a%20TRNG%20related%20question%20on%20this%20board%20that%20%22TRNG%20operates%20internally%20to%20generate%20the%20seed%20from%20which%20the%20PRNG%20is%20built.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESo%2C%20does%20that%20mean%20there%20is%20no%20need%20to%20input%20a%20separate%20seed%20value%20to%20generate%20a%20random%20number%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EPs%20%3A%26nbsp%3B%20I%20know%20that%20when%20using%20the%20DRBG%20algorithm%2C%20it%20need%20to%20input%20a%20seed%20with%20a%20certain%20entropy.%26nbsp%3BAre%20the%20DRBG%20algorithm%20and%20PRNG%20different%20concepts%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1985741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Questions%20about%20the%20random%20number%20generator%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThat's%20right%2C%20I%20was%20asking%20about%20the%20CSEc%20on%20the%20S32K.%20Thanks%20for%20the%20help!%20My%20question%20is%20all%20cleared%20up%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1985727%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Questions%20about%20the%20random%20number%20generator%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985727%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242691%22%20target%3D%22_blank%22%3E%40Derek_Yoon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAre%20we%20talking%20about%20CSEc%20on%20S32K1%3F%20It's%20given%20by%20SHE%20specification.%20Initial%20seed%20is%20generated%20by%20CMD_INIT_RNG%20command.%20Then%20you%20can%20generate%20random%20numbers%20while%20it%20is%20not%20necessary%20to%20reseed.%20The%20only%20additional%20thing%20you%20can%20do%20in%20runtime%20is%20to%20run%20CMD_EXTEND_SEED%20command%20to%20supply%20128%20bit%20of%20entropy.%20You%20can%20call%20this%20command%20whenever%20additional%20entropy%20is%20needed.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E