crypto: rng - Mark crypto_rng_reset seed as const
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 02:46:37 +0000 (10:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Apr 2015 01:30:07 +0000 (09:30 +0800)
commit3c5d8fa9f56ad0928e7a1f06003e5034f5eedb52
tree26b035754eb3cf014cbcf7c90351a0bc1711b170
parentff030b099a21a4753af575b4304249e88400e506
crypto: rng - Mark crypto_rng_reset seed as const

There is no reason why crypto_rng_reset should modify the seed
so this patch marks it as const.  Since our algorithms don't
export a const seed function yet we have to go through some
contortions for now.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rng.c
include/crypto/rng.h